single-file-core 1.6.16 → 1.6.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -643,7 +643,7 @@ function getRemovableSelectors(ruleData, removedSelectors, docContext) {
|
|
|
643
643
|
const removedSet = new Set(removedSelectors);
|
|
644
644
|
let keptSpecificity = { a: 0, b: 0, c: 0 };
|
|
645
645
|
for (let selector = ruleData.prelude.children.head; selector; selector = selector.next) {
|
|
646
|
-
if (!removedSet.has(selector)) {
|
|
646
|
+
if (!removedSet.has(selector) && !hasPseudoElement(selector.data)) {
|
|
647
647
|
const { specificity } = docContext.selectorData.get(selector);
|
|
648
648
|
if (compareSpecificities(specificity, keptSpecificity) > 0) {
|
|
649
649
|
keptSpecificity = specificity;
|