mdn/content

Mobile and desktop parity for the select element

Open

#43,403 opened on 2026年3月10日

GitHub で見る
 (4 comments) (0 reactions) (0 assignees)Markdown (8,900 stars) (22,427 forks)batch import
Content:HTMLgoal: up-to-datehelp wanted

説明

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

コントリビューターガイド