Is there a way to hide the scrollbar on a list box only when it's necessary? I've been struggling to achieve this behavior, as the scrollbar always seems to be present. I'm currently using Chromium, but I haven't tested how it behaves in other browsers.
Sample HTML Code
<select size="2">
<option>item</option>
<option>item</option>
<option>item</option>
<option>item</option>
<option>item</option>
</select>
Sample CSS Code
select {
width: 200px;
min-height: 400px;
overflow: auto;
}
The provided code snippet results in: