Skip to content

Commit 6a3be51

Browse files
committed
[css-sizing] Define which HTML elements are 'replaced' and thus compressible. Fixes #1889.
1 parent aa7cd79 commit 6a3be51

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

css-sizing-3/Overview.bs

+16
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,10 @@ Intrinsic Contributions</h3>
452452
However, in the case of a [=replaced element|replaced=] box with a percentage-based 'width'/'max-width'/'height'/'max-height',
453453
the percentage is resolved to zero
454454
when calculating the <a>min-content contribution</a> in the corresponding axis.
455+
(See [[#min-content-zero]] for a list of which elements in HTML this applies to.)
456+
The UA may additionally floor this size based on UI considerations,
457+
such as ensuring certain UI elements remain visible
458+
(for example, the dropdown arrow on a <{select}>).
455459

456460
<div class=example>
457461
For example,
@@ -644,6 +648,18 @@ Extrinsic Size Determination</h2>
644648
overflowing the <code>&lt;article></code>
645649
</div>
646650

651+
<h2 class=no-num id="min-content-zero">
652+
Compressible Replaced Elements</h2>
653+
654+
The following elements can have their <a>min-content size</a> compressed
655+
when their 'width'/'height' or 'max-width'/'max-height' is expressed with a percentage size.
656+
See [[#intrinsic-contribution]].
657+
658+
* All <a>replaced elements</a> that aren't form controls.
659+
See <a href="https://html.spec.whatwg.org/multipage/rendering.html#replaced-elements">HTML&sect;14.4</a>. [[!HTML]]
660+
* <{input}> with any <{input/type}> other than <code>"button"</code>, <code>"submit"</code>, or <code>"reset"</code>.
661+
* <{select}>, <{textarea}>, <{progress}>, <{meter}>.
662+
647663
<h2 class=no-num id="changes">
648664
Changes</h2>
649665

0 commit comments

Comments
 (0)