- From: L. David Baron via GitHub <noreply@w3.org>
- Date: Wed, 08 Apr 2026 14:24:54 +0000
- To: public-css-archive@w3.org
With elements, we don't make `h1::file-selector-button` a parse error, even though `::file-selector-button` only works on `<input type=file>`. Element-like pseudo-elements should just work like elements. The reason we created element-like pseudo-elements was part of the compromise where we agreed not to create complex controls out of web components technology. If we had built them on web components technologies (such as `::part()`), we would have been building on existing platform primitives and wouldn't have had the opportunity to litigate every tiny decision like this. Part of the reason for creating element-like pseudo-elements was to declare that some pseudo-elements would act like elements in many ways both because it is reasonable to do so and because it mandates that there be less process of debating every single aspect of their existence exactly like we're doing here. I think the compromise in #9951 has not been honored by the side that was against `::part()`, and next time around we should just use `::part()`. -- GitHub Notification of comment by dbaron Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13590#issuecomment-4206983750 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 8 April 2026 14:24:56 UTC