mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-08 16:12:23 +02:00
When computing pseudo-element style and no pseudo-element rules match, StyleComputer was returning early without clearing the cascaded and custom property data on the AbstractElement. As a result, getComputedStyle() on the pseudo-element kept exposing values from a previous matching state. Clear both before bailing so a transition from matched to unmatched leaves the pseudo-element in a clean state.
154 KiB
154 KiB