html
html copied to clipboard
Consider adding auto-sizing for <select> as a listbox
Similar to https://github.com/whatwg/html/issues/6807 but for <select multiple> / <select size=2>
There's no way without JS to specify that a listbox select should have the same height as its contents.
Anecdotal example of a requests for this (found by searching "auto-size select multiple"):
https://stackoverflow.com/questions/9943886/make-multiple-select-to-adjust-its-height-to-fit-options-without-scroll-bar
Do UI libraries typically have a "<select> as a listbox" widget? For those that do, can it auto-size?
cc @whatwg/forms @mfreed7