We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
at-root
if
input.scss
$bar: true; p { @if $bar { @at-root { div { width: 100px; } } } @at-root { @if $bar { div { height: 100px; } } } }
libsass 3.5.5
div { width: 100px; } p div { height: 100px; }
Expected result:
div { width: 100px; } div { height: 100px; }
The text was updated successfully, but these errors were encountered:
Add todo spec test for libsass issue 2185
17537fc
sass/libsass#2185
ceaa413
Fix @at-root for loop and logic statements
eecd0c4
The root flag should be inherited from the parent, since the statements are transparent (no CSS blocks in output). Fixes sass#2185
Updated the test to also include all? other similar statements:
$bar: true; @mixin mixin() { mix: in; } @mixin include() { @content; } p { @at-root { @if $bar { #if { height: 100px; } } @if (not $bar) { } @elseif($bar) { #elseif { width: 100px; } } @if (not $bar) { } @else { #else { width: 100px; } } @for $i from 1 through 1 { #for { foo: bar#{$i}; } } $i: 0; @while ($i == 0) { $i: $i + 1; #while { foo: bar#{$i}; } } @each $i in (1) { #each { foo: bar#{$i}; } } #inc { @include mixin(); @include include() { inc: lude; } } @supports (display: flex) { display: flex; } @foo { bar: bat; } } }
Sorry, something went wrong.
mgreter
No branches or pull requests
at-root
does not work if there is an internalif
statementinput.scss
libsass 3.5.5
Expected result:
The text was updated successfully, but these errors were encountered: