mirror of
https://github.com/danog/dart-sass.git
synced 2025-01-22 05:41:14 +01:00
Properly handle extended pseudos.
There was a logic bug when we created a new selector that injected extended pseudo-selectors into a previous selector. We would overwrite the last selector after the original pseudo rather than overwriting the pseudo itself.
This commit is contained in:
parent
f17edb83d8
commit
beb1a0bd09
@ -271,8 +271,8 @@ class Extender {
|
||||
compound.components.length - 1 + extendedPseudo.length);
|
||||
simples.setRange(0, i, compound.components);
|
||||
simples.setRange(i, i + extendedPseudo.length, extendedPseudo);
|
||||
simples.setRange(
|
||||
i + extendedPseudo.length, simples.length, compound.components, i);
|
||||
simples.setRange(i + extendedPseudo.length, simples.length,
|
||||
compound.components, i + 1);
|
||||
original = new CompoundSelector(simples);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user