Re: [csswg-drafts] [css-lists] Should option/optgroup be able to set counters? (#4004)

Thinking about this, having counters on selects with `multiple` is probably the most “real” use case they could have — to show stuff like “N out of M options selected”. Counters on options of regular selects still could have viable use-cases (mostly for similar counting/validation help purposes), but as this is not something that was not available at all browsers, developers didn't research this enough.

Talking about if something like that should be present at all, I would confirm that, ideally, options _should_ generate boxes, and developers should have more control over what should be inside the options and how they should be displayed (also: how the option groups should be displayed and styled, but thats completely another issue). Actually, my experiments came from trying to find a way to at least display some extra images (flags for a country input, to be precise) for a selected value. Allowing images inside options would mean so much, and if select styling would be enhanced, I could live without counters on them (but then, if they would generate boxes, they would need to have counters, so… win/win).


-- 
GitHub Notification of comment by kizu
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4004#issuecomment-504373872 using your GitHub account

Received on Friday, 21 June 2019 10:16:07 UTC