Skip to content

Commit 36f97fb

Browse files
committed
[css-sizing-3] Define the minimum size for replaced element as well. #6073
1 parent 3b6a055 commit 36f97fb

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

css-sizing-3/Overview.bs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -885,12 +885,16 @@ See <a href="https://www.w3.org/TR/CSS2/visudet.html">CSS2&sect;10</a>.
885885

886886
This specification does not define how to determine the sizes of floats.
887887
Please refer to [[CSS2]].
888-
However, the [=max-content size=] of a [=replaced element=] with no [=natural size=]
889-
is defined below:
888+
However, the [=intrinsic sizes=] of [=replaced elements=] without [=natural sizes=]
889+
are defined below:
890890

891891
<dl>
892-
<dt>For [=replaced=] elements with a [=preferred aspect ratio=]:
892+
<dt>If it has a [=preferred aspect ratio=]:
893893
<dd>
894+
For the [=min-content size=], use zero.
895+
896+
For the [=max-content size=]:
897+
894898
* If the <a>available space</a> is <a>definite</a>
895899
in the <a>inline axis</a>,
896900
use the <a>stretch fit</a> into that size for the inline size
@@ -917,8 +921,10 @@ is defined below:
917921
and calculate the other dimension using the aspect ratio.
918922
<!-- More brand-new behavior, to prevent max-content size from going infinite. -->
919923

920-
<dt>For [=replaced elements=] without a [=preferred aspect ratio=]:
924+
<dt>If it has no [=preferred aspect ratio=]:
921925
<dd>
926+
For both the [=min-content size=] and [=max-content size=]:
927+
922928
* If the box has a <<length>> as its [=computed value|computed=]
923929
[=minimum size=] ('min-width'/'min-height') in that dimension,
924930
use that size.

0 commit comments

Comments
 (0)