+36
−4
+10
−1
Loading
collectApproximateMatches treats an ancestor compound that reduced to
nothing (attribute selector or unsupported pseudo-class stripped away,
see stripAttributeSelectors) as vacuously satisfied, same as before.
But a rule that only matched because of that is now barred from
contributing display:none/visibility:hidden specifically, since a wrong
guess there deletes the element and its subtree from the import rather
than just mis-styling it. Confirmed on a real page-builder site where
every decorative spacer div was being hidden because its visibility
rule's ancestor condition was "[data-mode=horizontal]", a condition
this matcher has no way to verify.
Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com>