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

emilio has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-pseudo] Should ::before / ::after really be part-like? ==
When @tabatkins introduced part-like pseudos in the spec (0f41712965), it was added that:

> Both [::before](https://drafts.csswg.org/css-pseudo/#selectordef-before) and [::after](https://drafts.csswg.org/css-pseudo/#selectordef-after) are [part-like pseudo-elements](https://drafts.csswg.org/css-pseudo/#part-like-pseudo-elements); there is no restriction on what properties apply to them.

While it is true that there are no property restrictions on these pseudos, I'm not sure they should be part-like pseudo-elements.

part-like pseudo-elements should have other properties (like supporting further pseudos, or a bunch of pseudo-classes that `::before` and `::after` do not support).

So I'm not convinced `::before` and `::after` should be marked as such?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10846 using your GitHub account


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

Received on Friday, 6 September 2024 14:55:27 UTC