mirror of
https://github.com/danog/dart-sass.git
synced 2024-12-02 17:49:38 +01:00
Fix some edge-case-y extend logic.
This commit is contained in:
parent
3941e4debd
commit
95508b2713
@ -684,7 +684,7 @@ bool _simpleIsSuperselectorOfCompound(
|
||||
if (theirSimple is PseudoSelector &&
|
||||
theirSimple.selector != null &&
|
||||
_subselectorPseudos.contains(theirSimple.normalizedName)) {
|
||||
return theirSimple.selector.components.any((complex) {
|
||||
return theirSimple.selector.components.every((complex) {
|
||||
if (complex.components.length != 1) return false;
|
||||
var compound = complex.components.single as CompoundSelector;
|
||||
return compound.components.contains(simple);
|
||||
@ -775,4 +775,4 @@ Iterable<PseudoSelector> _selectorPseudosNamed(
|
||||
simple is PseudoSelector &&
|
||||
simple.isClass &&
|
||||
simple.selector != null &&
|
||||
simple.name == name));
|
||||
simple.normalizedName == name));
|
||||
|
Loading…
Reference in New Issue
Block a user