-
Notifications
You must be signed in to change notification settings - Fork 714
[css-ui] How do appearance: none
and appearance: auto
render the rich <select>
markup?
#10332
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
Comments
appearance:none and appearance:auto both use the same native or platform-specific picker, so I don’t see how we can make appearance:none switch to using an unrestricted non-native picker without breaking websites which expect to get a native picker. On at least Chromium browsers, this picker exists within a separate OS window that can extend beyond the content area, meaning it cannot contain arbitrary content without creating security issues.
I figured this would be up to the platform because as you mentioned there are platform-specific restrictions which may prevent showing the markup. Should we really mandate that certain portions of the markup do or don’t get rendered by the native framework? |
I'm curious what is the impact of making explicit |
I suspect that appearance:none is used enough on select elements that it would be a breaking change. A quick search shows a few samples on stackoverflow which use appearance:none on select:
I'd be happy to add a use counter if you'd like some concrete data. |
I'd like to have a justification for not making breaking changes to appearance:none on <select>: w3c/csswg-drafts#10332 (comment) Bug: 40146374 Change-Id: I234b2ed5ca1d39fbcdebe25bc0d0b40d1b5f29f4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5585658 Commit-Queue: Joey Arhar <jarhar@chromium.org> Reviewed-by: Di Zhang <dizhangg@chromium.org> Cr-Commit-Position: refs/heads/main@{#1308408}
There's the question of how
appearance: none
andauto
should render the new selects with rich content.So far, all the demos/prototypes I have seen so far tie the rich select markup to
appearance: base-select
. However it would feel a bit odd ifappearance: none
did not show the rich markup, given it would be a violation of the separation of concerns between styling and markup.appearance: auto
may be more of a special case given native frameworks may have restrictions that prevent showing the markup.Either way, how
appearance: none
andauto
interact with the rich select markup are questions that should be answered, especially as it will pave the way for howappearance
generally works even for future controls.The text was updated successfully, but these errors were encountered: