Skip to content

Commit f839cbb

Browse files
committed
[css-grid] Improve wording for automin clamping. w3c#6278 (comment)
1 parent c8966ce commit f839cbb

File tree

2 files changed

+19
-17
lines changed

2 files changed

+19
-17
lines changed

css-grid-1/Overview.bs

+10-9
Original file line numberDiff line numberDiff line change
@@ -1331,12 +1331,13 @@ Automatic Minimum Size of Grid Items</h3>
13311331
plus any intervening <a lt="fixed sizing function">fixed</a> <a>gutters</a>.
13321332

13331333
In all cases, the size suggestion is additionally clamped by the [=maximum size=] in the affected axis,
1334-
if it's definite.
1334+
if it's [=definite=].
13351335
If the item is a [[css-sizing-3#min-content-zero|compressible replaced element]],
1336-
the size suggestion is clamped
1337-
by both the [=maximum size=] and the [=preferred size=], whichever are definite,
1338-
with their indefinite percentages resolved for this purpose against zero
1339-
(and therefore considered definite).
1336+
and has a [=definite=] [=preferred size=] or [=maximum size=]
1337+
in the relevant axis,
1338+
the size suggestion is capped by those sizes;
1339+
for this purpose, any indefinite percentages in these sizes
1340+
are resolved against zero (and considered [=definite=]).
13401341

13411342
Note: The argument to ''fit-content()'' does <em>not</em> clamp
13421343
the [=content-based minimum size=] in the same way as a
@@ -1363,11 +1364,11 @@ Automatic Minimum Size of Grid Items</h3>
13631364
converted through the aspect ratio.
13641365
It is otherwise undefined.
13651366

1366-
If the item’s has a [=preferred size=] or [=maximum size=]
1367+
If the item has a [=definite=] [=preferred size=] or [=maximum size=]
13671368
in the relevant axis,
1368-
the [=transferred size suggestion=] is capped by those sizes,
1369-
resolving any indefinite percentages in these sizes
1370-
against zero for this purpose.
1369+
the [=transferred size suggestion=] is capped by those sizes;
1370+
for this purpose, any indefinite percentages in these sizes
1371+
are resolved against zero (and considered [=definite=]).
13711372

13721373
<dt><dfn>content size suggestion</dfn>
13731374
<dd>

css-grid-2/Overview.bs

+9-8
Original file line numberDiff line numberDiff line change
@@ -1379,10 +1379,11 @@ Automatic Minimum Size of Grid Items</h3>
13791379
In all cases, the size suggestion is additionally clamped by the [=maximum size=] in the affected axis,
13801380
if it's definite.
13811381
If the item is a [[css-sizing-3#min-content-zero|compressible replaced element]],
1382-
the size suggestion is clamped
1383-
by both the [=maximum size=] and the [=preferred size=], whichever are definite,
1384-
with their indefinite percentages resolved for this purpose against zero
1385-
(and therefore considered definite).
1382+
and has a [=definite=] [=preferred size=] or [=maximum size=]
1383+
in the relevant axis,
1384+
the size suggestion is capped by those sizes;
1385+
for this purpose, any indefinite percentages in these sizes
1386+
are resolved against zero (and considered [=definite=]).
13861387

13871388
Note: The argument to ''fit-content()'' does <em>not</em> clamp
13881389
the [=content-based minimum size=] in the same way as a
@@ -1409,11 +1410,11 @@ Automatic Minimum Size of Grid Items</h3>
14091410
converted through the aspect ratio.
14101411
It is otherwise undefined.
14111412

1412-
If the item’s has a [=preferred size=] or [=maximum size=]
1413+
If the item has a [=definite=] [=preferred size=] or [=maximum size=]
14131414
in the relevant axis,
1414-
the [=transferred size suggestion=] is capped by those sizes,
1415-
resolving any indefinite percentages in these sizes
1416-
against zero for this purpose.
1415+
the [=transferred size suggestion=] is capped by those sizes;
1416+
for this purpose, any indefinite percentages in these sizes
1417+
are resolved against zero (and considered [=definite=]).
14171418

14181419
<dt><dfn>content size suggestion</dfn>
14191420
<dd>

0 commit comments

Comments
 (0)