mirror of
https://github.com/danog/dart-sass.git
synced 2025-01-22 05:41:14 +01:00
Fix @supports (not ...). (#125)
This commit is contained in:
parent
b102852f93
commit
0556665f64
@ -15,6 +15,8 @@
|
||||
* Fix a bug where Sass would crash with a "Bad state: no element" error on some
|
||||
rare `@extend` rules.
|
||||
|
||||
* Fix `not` in parentheses in `@supports` conditions.
|
||||
|
||||
## 1.0.0-alpha.9
|
||||
|
||||
* Elements without a namespace (such as `div`) are no longer unified with
|
||||
|
@ -2524,7 +2524,10 @@ abstract class StylesheetParser extends Parser {
|
||||
|
||||
if (next == $n || next == $N) {
|
||||
var negation = _trySupportsNegation();
|
||||
if (negation != null) return negation;
|
||||
if (negation != null) {
|
||||
scanner.expectChar($rparen);
|
||||
return negation;
|
||||
}
|
||||
}
|
||||
|
||||
var name = _expression();
|
||||
@ -2551,6 +2554,7 @@ abstract class StylesheetParser extends Parser {
|
||||
return null;
|
||||
}
|
||||
|
||||
whitespace();
|
||||
return new SupportsNegation(
|
||||
_supportsConditionInParens(), scanner.spanFrom(start));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user