From f839cbb1fc199d041776c1c199d8a2daa6b48fd4 Mon Sep 17 00:00:00 2001 From: fantasai Date: Mon, 14 Mar 2022 13:02:12 -0400 Subject: [PATCH] [css-grid] Improve wording for automin clamping. https://github.com/w3c/csswg-drafts/issues/6278#issuecomment-1059359058 --- css-grid-1/Overview.bs | 19 ++++++++++--------- css-grid-2/Overview.bs | 17 +++++++++-------- 2 files changed, 19 insertions(+), 17 deletions(-) diff --git a/css-grid-1/Overview.bs b/css-grid-1/Overview.bs index 4cec56f9f46..756a1a164f4 100644 --- a/css-grid-1/Overview.bs +++ b/css-grid-1/Overview.bs @@ -1331,12 +1331,13 @@ Automatic Minimum Size of Grid Items plus any intervening fixed gutters. In all cases, the size suggestion is additionally clamped by the [=maximum size=] in the affected axis, - if it's definite. + if it's [=definite=]. If the item is a [[css-sizing-3#min-content-zero|compressible replaced element]], - the size suggestion is clamped - by both the [=maximum size=] and the [=preferred size=], whichever are definite, - with their indefinite percentages resolved for this purpose against zero - (and therefore considered definite). + and has a [=definite=] [=preferred size=] or [=maximum size=] + in the relevant axis, + the size suggestion is capped by those sizes; + for this purpose, any indefinite percentages in these sizes + are resolved against zero (and considered [=definite=]). Note: The argument to ''fit-content()'' does not clamp the [=content-based minimum size=] in the same way as a @@ -1363,11 +1364,11 @@ Automatic Minimum Size of Grid Items converted through the aspect ratio. It is otherwise undefined. - If the item’s has a [=preferred size=] or [=maximum size=] + If the item has a [=definite=] [=preferred size=] or [=maximum size=] in the relevant axis, - the [=transferred size suggestion=] is capped by those sizes, - resolving any indefinite percentages in these sizes - against zero for this purpose. + the [=transferred size suggestion=] is capped by those sizes; + for this purpose, any indefinite percentages in these sizes + are resolved against zero (and considered [=definite=]).
content size suggestion
diff --git a/css-grid-2/Overview.bs b/css-grid-2/Overview.bs index 91e8242a884..c08969675ba 100644 --- a/css-grid-2/Overview.bs +++ b/css-grid-2/Overview.bs @@ -1379,10 +1379,11 @@ Automatic Minimum Size of Grid Items In all cases, the size suggestion is additionally clamped by the [=maximum size=] in the affected axis, if it's definite. If the item is a [[css-sizing-3#min-content-zero|compressible replaced element]], - the size suggestion is clamped - by both the [=maximum size=] and the [=preferred size=], whichever are definite, - with their indefinite percentages resolved for this purpose against zero - (and therefore considered definite). + and has a [=definite=] [=preferred size=] or [=maximum size=] + in the relevant axis, + the size suggestion is capped by those sizes; + for this purpose, any indefinite percentages in these sizes + are resolved against zero (and considered [=definite=]). Note: The argument to ''fit-content()'' does not clamp the [=content-based minimum size=] in the same way as a @@ -1409,11 +1410,11 @@ Automatic Minimum Size of Grid Items converted through the aspect ratio. It is otherwise undefined. - If the item’s has a [=preferred size=] or [=maximum size=] + If the item has a [=definite=] [=preferred size=] or [=maximum size=] in the relevant axis, - the [=transferred size suggestion=] is capped by those sizes, - resolving any indefinite percentages in these sizes - against zero for this purpose. + the [=transferred size suggestion=] is capped by those sizes; + for this purpose, any indefinite percentages in these sizes + are resolved against zero (and considered [=definite=]).
content size suggestion