-
Notifications
You must be signed in to change notification settings - Fork 548
Proposal: Allow adding separator rows to <select> boxes using <hr> #1156
Comments
What would the purpose of the |
I think there should be possible to fully style the |
@scottaohara - The primary purpose would indeed be as a visual separator. Just to break up the "big blob of items" you get without some form of separation periodically. Additionally, there are platforms where titled groups are not a standard interface feature in a selection box or popup (or even a non-standard one; they're just not done, outside the context of a web browser). Allowing simple separators would make compliance with those sorts of interface standards much easier to do attractively. @Nadya678 - That's an interesting proposal, but it's a fairly substantial change, especially on browser/platform combinations where the interface used for is not generally flexible enough to implement that degree of customization. Even on those platforms, though, there is just about always the ability to add some form of separator or spacer row. |
I think, all browsers that is able to show majority part of CSS3 are able to show the element. I wrote the
The input+datalist is similar to combobox field (the datalist and option customization is also proposed by me). Browsers doesn't have to use the native system controls. Part of statements (like |
Stylable form controls are a common request, but there has not been much in the way of making it happen generically - even custom elements have problems for the moment. So something like an There are various approaches to this issue. You might want to move it to the Web Platform Incubator Group for the time being and see if one gets some traction... |
@chaals can you also move my topic to the web platform incubator group? |
Discussion in the HTML meeting (pointer to just after the discussion) decides that this is a layout issue, and Closing |
There is no standard way to create a proper separator or dividing line within the box created using
<select>
. Currently, the most common solution is to just put some hyphens or emdashes in an<option>
with thedisabled
attribute set. This doesn't actually look very good at all, and is not semantically accurate.There's already a perfectly good element for creating horizontal dividing lines in HTML: the
<hr>
element. This should be allowed in the context of a<select>
element in order to create separator rows.This would let you then create a separator using
<hr>
within the<select>
, like:In this situation, the
<hr>
is interpreted as a separator row and treated as such, rather than as a selectable option (since it's not an<option>
element.This has also been filed against the WHATWG spec: whatwg/html#3410
The text was updated successfully, but these errors were encountered: