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 #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
955955

956956
To provide a more reasonable default minimum size for flex items,
957957
the used value of a main axis automatic minimum size
958-
on a flex item that is not a scroll container
958+
on a flex item whose [=computed value|computed=] 'overflow' value is [=non-scrollable overflow value|non-scrollable=]
959959
is its [=content-based minimum size=];
960960
for scroll containers the automatic minimum size 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
12831283
the used value of its automatic minimum size in a given axis
12841284
is the content-based minimum size 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 min track sizing function 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
53755375
53765376
layout-algorithm/grid-intrinsic-track-sizes-001.html
53775377
5378+
5379+
  • 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+
    (7714)
    53785386
    53795387

    53805388

    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
    13421342
    the used value of its automatic minimum size in a given axis
    13431343
    is the content-based minimum size 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 min track sizing function 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
    55285528
    and grid track sizing.
    55295529
    See [[#layout-algorithm]].
    55305530
    5531+
    5532+
  • 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+
    (7714)
    55315539
    55325540

    55335541

    0 commit comments

    Comments
     (0)