Top
Best
New

Posted by tosh 3/31/2025

The <select> element can now be customized with CSS(developer.chrome.com)
507 points | 187 commentspage 3
paradox460 4/1/2025|
I still wish it would grow some primitive filtering/searching feature. I'm very tired of having to reach for JavaScript just to let users narrow a massive list of things
hbroadbent 4/1/2025|
Hey! Actually that is possible using the <datalist> element.

If you're interested, I wrote a bit more about it here: https://harrisonbroadbent.com/blog/cool-native-html-elements...

porridgeraisin 4/1/2025||
The rule is:

Styleable XOR Unusable = 1.

jillyboel 3/31/2025||
Can someone explain why this took them literal decades to do?
NoMoreNicksLeft 3/31/2025||
As I remember the arguments from 20 years ago, there was strong pushback against changing any form inputs, which the people who did such work said should appear as the operating system itself styled them (so users would recognize them as form inputs).

Should be able to style more than just selects, after all. Why the fuck can't I change the mask character in a password field to be something other than bullets? Hah. I had better examples too, but it looks like in the past 10 years or so, they've slowly been CSS-ized. Nice. Now if I could just style half the first line (first-line does the entirety of the line or nothing).

Nesco 3/31/2025|||
There is no one truly in charge, it's a distributed standard
codedokode 3/31/2025|||
Because HTML historically was designed for marking up text articles by hand rather than building UI with tools.
LoganDark 3/31/2025||
Priorities? Profit incentives?
blatantly 3/31/2025||
> Changes the browsers HTML parser

Sounds like you can create loops. If the select had a style element that turns this off again would it keep changing state?

vntok 4/1/2025|
I don't see how it would create a loop? It seems like the parser change only impacts <select>'s descendant elements (to stop "cleaning" them of illegal elements), not <select> itself.
Brysonbw 3/31/2025||
Been waiting for this - hopefully this inspires more native web features to be implemented so devs can reduce their reliance on dependencies
AbuAssar 4/1/2025||
There should be a search box by default at the top of any <select> dropdown if there are more than n items
ilayn 3/31/2025||
Wow what's next, scrolling title text? What a time to be alive...
darepublic 3/31/2025||
trying to write automation js for material ui dropdowns has been a PITA. This is the right direction!!
pier25 3/31/2025||
So how long until Safari adopts this?
sleepybrett 3/31/2025||
hey, this is about 20 years late.
renegade-otter 3/31/2025|
It's been 84 years...
More comments...