Skip to content

Commit

Permalink
Fix subrules of bubbling of non-conditional directives. fix #31
Browse files Browse the repository at this point in the history
  • Loading branch information
Horcrux7 committed Feb 7, 2017
1 parent 6365242 commit 9022b7c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/com/inet/lib/less/Rule.java
Expand Up @@ -234,7 +234,11 @@ private void bubbling( String[] mediaSelector, String[] blockSelector, CssFormat
// non-conditional directives for example @font-face or @keyframes
CssFormatter block = formatter.startBlock( mediaSelector );
appendPropertiesTo( block );
for( Rule rule : subrules ) {
rule.appendTo( null, block );
}
block.endBlock();
return;
}
}

Expand Down
Expand Up @@ -5,3 +5,8 @@
@font-face {
src: made-up-url;
}
@keyframes foobar {
from {
opacity: 1;
}
}
@@ -1 +1 @@
#a{color:#00f;padding:2 2 2 2}@font-face{src:made-up-url}
#a{color:#00f;padding:2 2 2 2}@font-face{src:made-up-url}@keyframes foobar{from{opacity:1}}
Expand Up @@ -4,4 +4,7 @@
src: made-up-url;
}
padding: 2 2 2 2;
@keyframes foobar {
from { opacity: 1; }
}
}

0 comments on commit 9022b7c

Please sign in to comment.