-
Notifications
You must be signed in to change notification settings - Fork 657
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[css-pseudo] Should ::before / ::after really be part-like? #10846
Comments
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 |
Note that |
Hm, I'm fine either way. |
I thought that part-like means that the main/parent element of the pseudo-element has a UA shadowroot, and there is an element in that shadowroot which the pseudo-element points to, but based on this discussion I guess that's not true, thats just how its implemented in blink. |
FWIW, the spec currently states this is invalid. https://drafts.csswg.org/selectors-4/#sub-pseudo-elements:
|
The CSS Working Group just discussed
The full IRC log of that discussion<dholbert> dbaron: this is a subtopic of previous one. emilio filed a specific issue about ::Before and ::after<dholbert> dbaron: I agree with him, that ::before and after are not part-like <kbabbitt> +1 <dholbert> fantasai: right, it surprised me to find that in the spec <dholbert> emilio: sounds good <andreubotella> +1 <dholbert> PROPOSED RESOLUTION: ::before and ::after are not ::part-like <kbabbitt> q+ <flackr> +1 <Rossen6> ack flackr <Rossen6> ack fantasai <Rossen6> ack kbabbitt <dholbert> kbabbitt: but they are tree-abiding? <dholbert> emilio: right <dholbert> PROPOSED RESOLUTION: ::before and ::after are not ::part-like but are tree-abiding <dholbert> RESOLVED: ::before and ::after are not ::part-like but are tree-abiding |
When @tabatkins introduced part-like pseudos in the spec (0f41712), 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?The text was updated successfully, but these errors were encountered: