Skip to content

Commit 9f93f44

Browse files
committed
[css-grid] Exclude non-replaced elements from using transferred size in content-based minimum size. #6069
1 parent f86bc38 commit 9f93f44

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

css-grid-1/Overview.bs

+8-1
Original file line numberDiff line numberDiff line change
@@ -1310,7 +1310,8 @@ Automatic Minimum Size of Grid Items</h3>
13101310

13111311
The <dfn>content-based minimum size</dfn> for a <a>grid item</a> in a given dimension is
13121312
its <a>specified size suggestion</a> if it exists,
1313-
otherwise its <a>transferred size suggestion</a> if that exists,
1313+
otherwise its <a>transferred size suggestion</a> if that exists
1314+
and the element is [=replaced element|replaced=],
13141315
else its <a>content size suggestion</a>,
13151316
see below.
13161317
However,
@@ -4686,6 +4687,12 @@ Changes since the <a href="https://www.w3.org/TR/2020/CRD-css-grid-1-20201218/">
46864687
is a type of [=intrinsic size contribution=],
46874688
and thus impacted by associated rules in [[CSS-SIZING-3]].
46884689
(<a href="https://github.com/w3c/csswg-drafts/issues/5665#issuecomment-738391191">Issue 5665</a>)
4690+
<li id="change-2020-auto-min-replaced">
4691+
Explicitly restricted the application of the [=transferred size suggestion=]
4692+
to [=replaced elements=] as was originally intended,
4693+
now that [=non-replaced elements=] can also have an aspect ratio
4694+
via 'aspect-ratio'. [[CSS-SIZING-4]]
4695+
(<a href="https://github.com/w3c/csswg-drafts/issues/6069">Issue 6069</a>)
46894696
</ul>
46904697

46914698
<h3 id="changes-202008">

css-grid-2/Overview.bs

+8-1
Original file line numberDiff line numberDiff line change
@@ -1356,7 +1356,8 @@ Automatic Minimum Size of Grid Items</h3>
13561356

13571357
The <dfn>content-based minimum size</dfn> for a <a>grid item</a> in a given dimension is
13581358
its <a>specified size suggestion</a> if it exists,
1359-
otherwise its <a>transferred size suggestion</a> if that exists,
1359+
otherwise its <a>transferred size suggestion</a> if that exists
1360+
and the element is [=replaced element|replaced=],
13601361
else its <a>content size suggestion</a>,
13611362
see below.
13621363
However,
@@ -5322,6 +5323,12 @@ Changes since the <a href="https://www.w3.org/TR/2020/CRD-css-grid-2-20201218/">
53225323
is a type of [=intrinsic size contribution=],
53235324
and thus impacted by associated rules in [[CSS-SIZING-3]].
53245325
(<a href="https://github.com/w3c/csswg-drafts/issues/5665#issuecomment-738391191">Issue 5665</a>)
5326+
<li id="change-2020-auto-min-replaced">
5327+
Explicitly restricted the application of the [=transferred size suggestion=]
5328+
to [=replaced elements=] as was originally intended,
5329+
now that [=non-replaced elements=] can also have an aspect ratio
5330+
via 'aspect-ratio'. [[CSS-SIZING-4]]
5331+
(<a href="https://github.com/w3c/csswg-drafts/issues/6069">Issue 6069</a>)
53255332
</ul>
53265333

53275334
<h3 id="changes-202008">

0 commit comments

Comments
 (0)