html
html copied to clipboard
Add UA stylesheet for <select> base appearance
This PR adds a stylesheet for customizable select which applies when the select element has base appearance.
Discussion here: https://github.com/w3c/csswg-drafts/issues/10857
Customizable select proposal: https://github.com/whatwg/html/issues/9799
- [x] At least two implementers are interested (and none opposed):
- Chrome
- Mozilla: https://github.com/mozilla/standards-positions/issues/1060
- WebKit: https://github.com/WebKit/standards-positions/issues/386
- [x] Tests are written and can be reviewed and commented upon at:
- https://wpt.fyi/results/html/semantics/forms/the-select-element/customizable-select/
- [x] Implementation bugs are filed:
- Chromium: Already implemented
- Gecko: https://bugzilla.mozilla.org/show_bug.cgi?id=1944403
- WebKit: https://bugs.webkit.org/show_bug.cgi?id=286642
- [x] MDN issue is filed: https://github.com/mdn/content/issues/37857
(See WHATWG Working Mode: Changes for more details.)
/infrastructure.html ( diff ) /rendering.html ( diff )
I just updated this PR to match the latest styles from the CSS issue.
I'm not sure what we should say about properties that are supposed to be inherited, like color and font. Should we explicitly say color:inherit? Should we have some text which says that all properties not listed here should be whatever their unset value is? Should we just say that other UA styles should not apply?
There is a bunch of UA styles in chromium I have to undo by adding extra CSS, and while I don't want to list all those properties specifically in this spec I also think it would be a good idea to mention that when implementing this feature, you have to undo those.
I think we need to list all those properties explicitly in the spec! Why would we not?
I think @josepharhar is describing Chromium's implementation of "base appearance", as in principle "base appearance" would start from an unstyled element so you would not have to undo styling, unless it was some global style.
I see. That's probably covered by the CSS spec for appearance: base then?
Agreed! I'll omit the properties which have their default.
This PR won't be merged and will instead be included in a bigger PR including all customizable select PRs: https://github.com/whatwg/html/pull/10548