Closed gabrielfin closed 10 years ago
In the following example the @extend rule was completely ignored
File a:
@import 'b';
File b:
.foo { color: red; } .bar { .baz { @extend .foo; } }
Expected output:
.foo, .bar .baz { color: red; }
Actual output:
.foo { color: red; }
The problem was that when "moving" nodes of "b" to tree "a", the root property was updated only on the first 2 levels. This fix adds a method SassNode::setRoot which changes the root of every node of the subtree being "moved".
In the following example the @extend rule was completely ignored
File a:
File b:
Expected output:
Actual output:
The problem was that when "moving" nodes of "b" to tree "a", the root property was updated only on the first 2 levels. This fix adds a method SassNode::setRoot which changes the root of every node of the subtree being "moved".