Skip to content

Commit 96362e7

Browse files
committed
[css-flexbox-1] Make non-replaced elements consult the transferred size for their automatic minimum. #6069 #6794
1 parent d228964 commit 96362e7

File tree

1 file changed

+21
-8
lines changed

1 file changed

+21
-8
lines changed

css-flexbox-1/Overview.bs

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -960,14 +960,27 @@ Automatic Minimum Size of Flex Items</h3>
960960
for <a>scroll containers</a> the <a>automatic minimum size</a> is zero, as usual.
961961

962962
The <dfn>content-based minimum size</dfn> of a [=flex item=]
963-
is the smaller of its [=specified size suggestion=] and its [=content size suggestion=]
964-
if its [=specified size suggestion=] exists;
965-
otherwise, the smaller of its [=transferred size suggestion=] and its [=content size suggestion=]
966-
if the element is [=replaced element|replaced=]
967-
<!-- https://github.com/w3c/csswg-drafts/issues/6069 -->
968-
and its [=transferred size suggestion=] exists;
969-
otherwise its [=content size suggestion=].
970-
In all cases, the size is clamped by the [=maximum size|maximum=] [=main size=] if it's <a>definite</a>.
963+
differs depending on whether the [=flex item=] is [=replaced element|replaced=] or not:
964+
965+
: For [=replaced elements=]
966+
::
967+
Use the smaller of the [=content size suggestion=]
968+
and the [=transferred size suggestion=]
969+
(if one exists),
970+
capped by the [=specified size suggestion=]
971+
(if one exists).
972+
973+
: For [=non-replaced elements=]
974+
::
975+
Use the larger of the [=content size suggestion=]
976+
and the [=transferred size suggestion=]
977+
(if one exists),
978+
capped by the [=specified size suggestion=]
979+
(if one exists).
980+
981+
In either case,
982+
the size is clamped by the [=maximum size|maximum=] [=main size=]
983+
if it's <a>definite</a>.
971984

972985
<!-- This differs from Grid's definition
973986
(which just consults the first of specified,transferred,content that exists)

0 commit comments

Comments
 (0)