-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Need spec for layout of ::before/::after pseudos on form controls #4086
Comments
Here's another testcase with |
Interestingly, Firefox starts to apply these pseudos to checkbox/radio input types after setting them |
Per the CSS spec, I think these generally shouldn't work on form controls (since they're replaced elements), unless you can actually fully explain a form control using the CSS model. So in the cases where they do work, I think the spec needs to specify how. |
I think it's still unclear to what extent form controls are replaced elements. e.g. per #4143 a button acts as a replaced element in some aspects but not in others. Buttons aren't fully explainable with just the CSS model, yet ::before/::after work. Form controls are weird. 🙂 |
But the HTML spec clearly lists them under Non-replaced elements. Don't we need a common definition of what makes the element replaced? |
http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=6281
It seems Firefox and Chrome are incompatible in a number of cases.
The text was updated successfully, but these errors were encountered: