Chrome 135 (in Beta as I write, probably stable early April?) will have customizable select elements in it. You opt-in to it in CSS, and once you have, you can go ham on styling regular ol’ <select>
, <option>
, ‘n’ friends elements. Very progressive-enhancement friendly as a select without custom styling is… fine.
It’s interesting and notable that even when it does ship Chrome is prepared to protect the web:
Chrome has the features behind a Finch experiment in case there is an emergency need to turn it off. If things go well, the experiment will end and the code will be shipped permanently into the source.
I’ve seen people playing!
- Adam’s experiments
- Una showing what you get when you opt-in but otherwise change no CSS
- Totally custom datepicker by Paul
- Full exploration and blog post by Brecht, with interesting examples like combining with
position: sticky
; - While they are at it Jeremy Keith thinks the opt-in could work on
legend
(👍)
Baseline when?