Skip to content

Commit 8b5df25

Browse files
authored
Merge pull request #59 from aurelien-minvielle/issue-58
Fix rule inlining mechanism with nested rules.
2 parents 73a8220 + 325f28a commit 8b5df25

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

src/com/inet/lib/less/Rule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ boolean hasOnlyInlineProperties( CssFormatter formatter ) {
577577
}
578578

579579
for( Rule rule : subrules ) {
580-
if( rule.isValidCSS( formatter ) && rule.isInlineRule( formatter) ) {
580+
if( rule.isValidCSS( formatter ) && !rule.isInlineRule( formatter) ) {
581581
return false;
582582
}
583583
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.foo .bar {
2+
color: blue;
3+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.foo {
2+
& {
3+
.bar {
4+
color: blue;
5+
}
6+
}
7+
}

0 commit comments

Comments
 (0)