mirror of
https://github.com/danog/dart-sass.git
synced 2025-01-22 05:41:14 +01:00
Fix superselector computation for :not().
This commit is contained in:
parent
ce36eb5b10
commit
8c4f0bdf81
@ -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()`.
|
||||
|
@ -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 &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user