Fix superselector computation for :not().

This commit is contained in:
Natalie Weizenbaum 2017-01-06 20:11:56 -08:00
parent ce36eb5b10
commit 8c4f0bdf81
2 changed files with 3 additions and 1 deletions

View File

@ -16,6 +16,8 @@
* Forbid mixins and functions from being defined in control directives.
* Fix a superselector-computation edge case involving `:not()`.
## 1.0.0-alpha.6
* Allow `var()` to be passed to `rgb()`, `rgba()`, `hsl()`, and `hsla()`.

View File

@ -729,7 +729,7 @@ bool _selectorPseudoIsSuperselector(
case 'not':
return pseudo1.selector.components.every((complex) {
return compound2.components.every((simple2) {
return compound2.components.any((simple2) {
if (simple2 is TypeSelector) {
var compound1 = complex.components.last;
return compound1 is CompoundSelector &&