Re: [csswg-drafts] [css-pseudo] Should ::before / ::after really be part-like? (#10846)

> I think making `::before` and `:after` part-like means that `::before::before` should work. Supporting potentially infinite levels of `::before`/`::after` seems like it might be problematic. (Though maybe not?)

FWIW, the spec currently states this is invalid. https://drafts.csswg.org/selectors-4/#sub-pseudo-elements:
> Unless the corresponding [sub-pseudo-element](https://drafts.csswg.org/selectors-4/#sub-pseudo-element) is explicitly defined to exist in another specification, pseudo-element selectors are not valid when compounded to another pseudo-element selector. So, for example, ::before::before is an invalid selector, but ::before::marker is valid (in implementations that support the ::before::marker sub-pseudo-element).

-- 
GitHub Notification of comment by kbabbitt
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10846#issuecomment-2380060043 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 27 September 2024 21:06:49 UTC