Skip to content

select element sizing should ignore optgroup labels #4502

Open
@heycam

Description

@heycam

Testing shows that the label of an optgroup does not contribute to the intrinsic size of a select element, in Chrome and Safari. For example:

<select>
  <optgroup label="Some long label that has no effect.">
    <option>First</option>
    <option>Second</option>
  </optgroup>
</select>

In Firefox the select element is wide enough to fit the optgroup label, and in Chrome and Safari it is wide enough to fit "Second".

This is a Web compatibility issue for us: https://bugzilla.mozilla.org/show_bug.cgi?id=1526855

Metadata

Metadata

Assignees

No one assigned

    Labels

    compatStandard is not web compatible or proprietary feature needs standardizingtopic: formstopic: rendering

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions