Skip to content

Commit f36dbca

Browse files
committed
[css-sizing] Per resolution in #1889 (comment), generalize the notion of which input types are compressible to be those that aren't 'button-like', and define 'button-like'. Relates to #1889.
1 parent 20b0e72 commit f36dbca

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

css-sizing-3/Overview.bs

+11-1
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,17 @@ Compressible Replaced Elements</h2>
10211021

10221022
* All <a>replaced elements</a> that aren't form controls.
10231023
See <a href="https://html.spec.whatwg.org/multipage/rendering.html#replaced-elements">HTML&sect;14.4</a>. [[!HTML]]
1024-
* <{input}> with any <{input/type}> other than <code>"button"</code>, <code>"submit"</code>, or <code>"reset"</code>.
1024+
1025+
* <{input}> with any <{input/type}> that is not "button-like";
1026+
this can vary depending on the UA.
1027+
1028+
A type is "button-like" in a particular UA if it displays similar to a <{button}> element,
1029+
where it can contains actual content that determines the layout of the element.
1030+
In most UAs, the "button", "reset", "submit", and "color" types are button-like;
1031+
the "file" type is also partially button-like in some UAs,
1032+
when it's displayed as a combination of a text input (shrinkable)
1033+
and a button (button-like, and thus not shrinkable).
1034+
10251035
* <{select}>, <{textarea}>, <{progress}>, <{meter}>.
10261036

10271037
<h2 class=no-num id="changes">

0 commit comments

Comments
 (0)