Fix @supports (not ...). (#125)

This commit is contained in:
Natalie Weizenbaum 2017-05-18 17:05:58 -07:00 committed by GitHub
parent b102852f93
commit 0556665f64
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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));
}