diff --git a/source b/source index e6c462593cb..6680836bb9a 100644 --- a/source +++ b/source @@ -55977,11 +55977,10 @@ interface HTMLSelectElement : HTMLElement {
If a select element has a required
- attribute specified, does not have a multiple attribute
- specified, and has a display size of 1; and if the value of the first option element in the
- select element's list of options (if
- any) is the empty string, and that option element's parent node is the
+ attribute specified, and has a display size of 1; and if
+ the value of the first option element in
+ the select element's list of options
+ (if any) is the empty string, and that option element's parent node is the
select element (and not an optgroup element), then that
option is the select element's placeholder label option.
A select element whose multiple
attribute is present is expected to render as a multi-select list
- box.
select element has a display size of 1, then it may render as a drop-down
+ box if the platform supports it, otherwise as a list box.
A select element whose multiple
- attribute is absent, and whose display size is greater
- than 1, is expected to render as a single-select list box.
When the element renders as a list box, it is a devolvable widget @@ -147698,16 +147700,14 @@ progress { appearance: auto; }
A select element whose multiple
- attribute is absent, and whose display size is 1, is
- expected to render as an 'inline-block' one-line drop-down
- box. The inline size of its intrinsic size is the
- width of the select's labels. If the 'field-sizing'
- property on the element has a computed value of
- 'content', the inline size of the
- intrinsic size depends on the shown text. The shown text is typically the label of
- an option of which selectedness is
- set to true.
A select element which is being rendered as a drop-down box is
+ expected to render as an 'inline-block' box. The inline
+ size of its intrinsic size is the width of the select's
+ labels. If the 'field-sizing' property on the element has a computed
+ value of 'content', the inline size
+ of the intrinsic size depends on the shown text. The shown text is typically the
+ label of an option of which selectedness is set to true.
When the element renders as a drop-down box, it is a devolvable
@@ -147806,7 +147806,15 @@ progress { appearance: auto; }
The width of the select's labels is the wider of the width necessary to
render the widest optgroup, and the width necessary to render the widest
option element in the element's list of
- options (including its indent, if any).select has the multiple attribute and is being rendered as a
+ drop-down box, then the width should also be wide enough to accomodate the text
+ rendered in the select with any combination of options selected.
The width of the select's labels has an accomodation for
+ multiple because some implementations use special text
+ to represent multiple options being selected, such as "2 selected." In this case, the select needs
+ to be wide enough to render "2 selected" in addition to the individual options.
If a select element contains a placeholder label option, the user