Skip to content

Commit ee91993

Browse files
committed
[css-grid-1] Fix errors introduced by 72f2bb2 and correctly define interaction with aspect ratios.
1 parent 64b8526 commit ee91993

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

css-grid-1/Overview.bs

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,19 +1119,18 @@ Grid Items</h2>
11191119
(consistent with the width calculation rules for block-level replaced elements in [[CSS2/visudet#block-replaced-width]]).
11201120

11211121
Otherwise,
1122-
use the [=inline size=] calculation rules for non-replaced boxes
1123-
(defined in [[CSS2/visudet#blockwidth]],
1124-
and modified by the rules for handling the 'aspect-ratio' property
1125-
when resolving ''width/auto'' sizes in [[CSS-SIZING-4]]).
1122+
if the grid item has a [=preferred aspect ratio=],
1123+
the grid item is sized as for a [=block-level box=].
1124+
1125+
Otherwise,
1126+
the grid item is sized as for ''align-self/stretch''.
11261127

11271128
: ''align-self/stretch''
11281129
::
11291130
Use the [=inline size=] calculation rules for non-replaced boxes
1130-
(defined in [[CSS2/visudet#blockwidth]],
1131-
and modified by the rules for handling the 'aspect-ratio' property
1132-
when resolving ''width/auto'' sizes in [[CSS-SIZING-4]]).
1131+
(defined in [[CSS2/visudet#blockwidth]]).
11331132

1134-
Note: This may distort the aspect ratio of the item, if it has one.
1133+
Note: This can distort the aspect ratio of the item, if it has one.
11351134

11361135
: all other values
11371136
:: Size the item as ''width/fit-content''.
@@ -4670,6 +4669,14 @@ Changes</h2>
46704669

46714670
This section documents the changes since previous publications.
46724671

4672+
<h3 id="changes-202008">
4673+
Changes since the <a href="https://www.w3.org/TR/2020/CR-css-grid-1-20200818/">18 August 2020 CR</h3>
4674+
4675+
<ul class="non-normative">
4676+
<li id="change-2020-align-normal-aspect-ratio">
4677+
Fix errors introduced by in the previous CR by an undocumented attempt to clarify [[#grid-item-sizing]] interaction with 'aspect-ratio'.
4678+
</ul>
4679+
46734680
<h3 id="changes-2017">
46744681
Changes since the <a href="https://www.w3.org/TR/2017/CR-css-grid-1-20171215/">15 December 2017 CR</a></h3>
46754682

0 commit comments

Comments
 (0)