logoalt Hacker News

akersten02/20/20251 replyview on HN

- Why is picker a function like `::picker(select)`, and not a CSS pseudo class like `::before` to select the `select`'s `picker` component? I.e., `select::picker` makes a lot more sense to me.

- What about multi-choice (`multiple` attribute) `select`s?


Replies

smarkov02/21/2025

Because it's been trendy to introduce a new unintuitive syntax with every new CSS feature.

I am genuinely afraid for the future of CSS as it is becoming increasingly more complex, meanwhile most people haven't been able to properly utilize or understand it for the last decade even without all of that additional complexity.

show 1 reply