Skip to content

Mobile and desktop parity for the select element #43403

@josepharhar

Description

@josepharhar

MDN URL

https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/select

What specific section or headline is this issue about?

multiple and size attributes

What information was incorrect, unhelpful, or incomplete?

The HTML spec is changing and chrome has already shipped what I called "mobile desktop parity" for the select element, meaning that the select element will now render as a drop-down box or a listbox consistently across mobile and desktop platforms given the same combination of multiple and size attributes. Prior to this change, desktop showed either a listbox or a drop-down box but didn't support a drop-down box for <select multiple>, and mobile didn't support a listbox in any configuration.

Here is a table which explains the new behavior:

HTML rendering mode
<select> drop-down box
<select size=4> (any size > 1) listbox
<select multiple> listbox
<select muiltiple size=1> drop-down box

The spec was written such that <select multiple size=1> might still be a listbox on certain platforms because macos appkit doesn't have a native picker for this, so it is likely that safari will still make this a listbox on macos. Chrome makes this a drop-down box on all platforms.

What did you expect to see?

Documentation about <select multiple size=1> at least, which is sort of a new thing we created. I think the table about rendering modes would also be helpful to show to authors.

Do you have any supporting links, references, or citations?

Do you have anything more you want to share?

@chrisdavidmills

Metadata

Metadata

Assignees

No one assigned

    Labels

    Content:HTMLHypertext Markup Language docsgoal: up-to-date(Experimental label) Issues about outdated content.help wantedIf you know something about this topic, we would love your help!

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions