Open emilio opened 2 weeks ago
cc @dbaron
I'm inclined to agree although I'm not sure yet. I was expecting to look into this as part of the "audit" I suggested in #10794.
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?)
Note that ::before::marker
works (well, browsers don't support the selector yet, but the ::before
can originate a marker box).
Hm, I'm fine either way.
When @tabatkins introduced part-like pseudos in the spec (0f41712965), it was added that:
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?