Re: [csswg-drafts] Are form controls replaced elements? (#12876)

> To be clear I'm not against saying that widgets shouldn't have a ::before or ::after. It's just that I don't think that the restriction on replaced elements is also covering widgets.

Ah, thanks. Sorry, just read this after posting the wall of text above.

Ok, so can we agree on:

 * Defining this new "widget" concept which isn't quite using the same replaced sizing concept as images.
 * Define that generated content pseudo-elements work only on some widgets (following the rationale defined above)?

I believe that makes all engines converge (Firefox needs to implement the generated content in a few places, and WebKit / Blink removing it from others), but I think the result is probably more sensible than the current state of things, which feels mostly random.

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


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

Received on Thursday, 4 December 2025 16:53:15 UTC