Files
ladybird/Tests/LibWeb/Text/expected/css/part-does-not-match-selection.txt
Jelle Raaijmakers e1ba577ab7 LibWeb: Don't match ::part() selectors against unrelated pseudo-elements
The selector matching code bypassed the pseudo-element type check for
`::part()` selectors to support compound selectors like
`::part(foo)::before`. This caused bare ::part() declarations to leak
into unrelated pseudo-elements like ::selection.

Fix this by finding any additional pseudo-element beyond ::part() in the
selector and verifying it matches the target.
2026-03-03 10:03:03 +01:00

3 lines
32 B
Plaintext

rgb(255, 0, 0)
rgba(0, 0, 0, 0)