Skip to content

Commit cca10ba

Browse files
committed
[css-flexbox-1][css-grid-1][css-grid-2] Check computed overflow instead of scroll container-ness w3c#7714
1 parent f2443d8 commit cca10ba

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

css-flexbox-1/Overview.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,7 @@ Automatic Minimum Size of Flex Items</h3>
955955

956956
To provide a more reasonable default <a>minimum size</a> for <a>flex items</a>,
957957
the used value of a <a>main axis</a> <a>automatic minimum size</a>
958-
on a <a>flex item</a> that is not a <a>scroll container</a>
958+
on a <a>flex item</a> whose [=computed value|computed=] 'overflow' value is [=non-scrollable overflow value|non-scrollable=]
959959
is its [=content-based minimum size=];
960960
for <a>scroll containers</a> the <a>automatic minimum size</a> is zero, as usual.
961961

css-grid-1/Overview.bs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1283,7 +1283,7 @@ Automatic Minimum Size of Grid Items</h3>
12831283
the used value of its <a>automatic minimum size</a> in a given axis
12841284
is the <a>content-based minimum size</a> if all of the following are true:
12851285

1286-
* it is not a [=scroll container=]
1286+
* its [=computed value|computed=] 'overflow' is not a [=scrollable overflow value=]
12871287
* it spans at least one [=track=] in that axis
12881288
whose <a>min track sizing function</a> is ''grid-template-rows/auto''
12891289
* if it spans more than one track in that axis, none of those tracks are [=flexible track|flexible=]
@@ -5375,6 +5375,14 @@ Minor Changes</h4>
53755375
<wpt>
53765376
layout-algorithm/grid-intrinsic-track-sizes-001.html
53775377
</wpt>
5378+
5379+
<li id="change-2020-auto-min-size-overflow">
5380+
Pin [=automatic minimum size=] conditional on [=computed value=] of 'overflow'
5381+
rather than on being a [=scroll container=]
5382+
to avoid cases such as [=replaced elements=]
5383+
whose computed [=scrollable overflow values=] resolve to
5384+
[=non-scrollable overflow values|non-scrollable=] [=used values=].
5385+
(<a href="https://github.com/w3c/csswg-drafts/issues/7714">7714</a>)
53785386
</ul>
53795387

53805388
<h4 id="clarify-2017">

css-grid-2/Overview.bs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1342,7 +1342,7 @@ Automatic Minimum Size of Grid Items</h3>
13421342
the used value of its <a>automatic minimum size</a> in a given axis
13431343
is the <a>content-based minimum size</a> if all of the following are true:
13441344

1345-
* it is not a [=scroll container=]
1345+
* its [=computed value|computed=] 'overflow' is not a [=scrollable overflow value=]=]
13461346
* it spans at least one [=track=] in that axis
13471347
whose <a>min track sizing function</a> is ''grid-template-rows/auto''
13481348
* if it spans more than one track in that axis, none of those tracks are [=flexible track|flexible=]
@@ -5528,6 +5528,14 @@ Changes since the <a href="https://www.w3.org/TR/2020/CRD-css-grid-2-20201218/">
55285528
and grid track sizing.
55295529
See [[#layout-algorithm]].
55305530
(<a href="https://github.com/w3c/csswg-drafts/issues/3418">Issue 3418</a>)
5531+
5532+
<li id="change-2020-auto-min-size-overflow">
5533+
Pin [=automatic minimum size=] conditional on [=computed value=] of 'overflow'
5534+
rather than on being a [=scroll container=]
5535+
to avoid cases such as [=replaced elements=]
5536+
whose computed [=scrollable overflow values=] resolve to
5537+
[=non-scrollable overflow values|non-scrollable=] [=used values=].
5538+
(<a href="https://github.com/w3c/csswg-drafts/issues/7714">7714</a>)
55315539
</ul>
55325540

55335541
<h3 id="changes-202008">

0 commit comments

Comments
 (0)