From d4c1255f47fe619c0cb562ba30a874bd76d9e120 Mon Sep 17 00:00:00 2001
From: Joey Arhar A A A A When the element renders as a list box, it is a devolvable widget
expected to render as an 'inline-block' box. The inline size of its
@@ -139369,16 +139366,14 @@ progress { appearance: auto; }
- A A When the element renders as a drop-down box, it is a devolvable
widget. Its appearance in the devolved state, as well as its appearance when the
@@ -139407,7 +139402,11 @@ progress { appearance: auto; }
The width of the select element is either a list box or a drop-down box, depending on its attributes.select element whose multiple
- attribute is present is expected to render as a multi-select list box.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.select element whose display size is
+ greater than 1 is expected to render as a list box. Otherwise, the
+ select is expected to render as a drop-down box.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.select element which is being rendered as a drop-down box is
+ expected to render as an 'inline-block'. 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.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's button with any combination of options
+ selected.
If a select element contains a placeholder label option, the user
agent is expected to render that option in a manner that conveys that it is a label,
From eb7b07b64c0d9787caeb6f26a6833970d2178874 Mon Sep 17 00:00:00 2001
From: Joey Arhar
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 which is being rendered as a drop-down box is
- expected to render as an 'inline-block'. The inline size of its
+ 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
From d781625ab95d0728a62dbb08d302dc47a7a01a42 Mon Sep 17 00:00:00 2001
From: Joey Arhar 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's button with any combination of options
- selected.
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 A A A A When the element renders as a list box, it is a devolvable widget
select element contains a placeholder label option, the user
agent is expected to render that option in a manner that conveys that it is a label,
From 9b35aa5fb1fbaf1222049d0d57efa29646527e7a Mon Sep 17 00:00:00 2001
From: Joey Arhar select element is either a list box or a drop-down box, depending on its attributes.select element whose display size is
- greater than 1 is expected to render as a list box. Otherwise, the
- select is expected to render as a drop-down box.select element whose multiple
+ attribute is present is expected to render as a multi-select list
+ box if its display size is greater than 1. If the
+ 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.select element whose multiple
+ attribute is absent, is expected to render as a drop-down box if its
+ display size is 1, or as a list box if its
+ display size is greater than 1.