Skip to content

Commit e2ee557

Browse files
committed
[css-grid-1] Fix error in clarification about how aspect-ratio affects grid item sizing for various alignments. w3c#5615
1 parent d1aa35d commit e2ee557

File tree

1 file changed

+18
-12
lines changed

1 file changed

+18
-12
lines changed

css-grid-2/Overview.bs

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

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

11731174
: ''align-self/stretch''
11741175
::
11751176
Use the [=inline size=] calculation rules for non-replaced boxes
1176-
(defined in [[CSS2/visudet#blockwidth]],
1177-
and modified by the rules for handling the 'aspect-ratio' property
1178-
when resolving ''width/auto'' sizes in [[CSS-SIZING-4]]).
1177+
(defined in [[CSS2/visudet#blockwidth]]).
11791178

1180-
Note: This may distort the aspect ratio of the item, if it has one.
1179+
Note: This can distort the aspect ratio of the item, if it has one.
11811180

11821181
: all other values
11831182
:: Size the item as ''width/fit-content''.
@@ -5306,10 +5305,17 @@ Privacy and Security Considerations {#priv-sec}
53065305
<h2 id="changes">
53075306
Changes</h2>
53085307

5309-
<h3 class="no-num" id="changes-20180904">
5310-
Changes since the
5311-
<a href="https://www.w3.org/TR/2019/WD-css-grid-2-20191203/">December 2019
5312-
CSS Grid Layout Level 2 Working Draft</a></h3>
5308+
<h3 id="changes-202008">
5309+
Changes since the <a href="https://www.w3.org/TR/2020/CR-css-grid-2-20200818/">August 2020 CR</h3>
5310+
5311+
<ul class="non-normative">
5312+
<li id="change-2020-align-normal-aspect-ratio">
5313+
Fix errors introduced by in the previous CR of CSS Grid 1 prose by an undocumented attempt to clarify [[#grid-item-sizing]] interaction with 'aspect-ratio'.
5314+
</ul>
5315+
5316+
<h3 class="no-num" id="changes-20180904">
5317+
Changes since the
5318+
<a href="https://www.w3.org/TR/2019/WD-css-grid-2-20191203/">December 2019 CSS Grid Layout Level 2 Working Draft</a></h3>
53135319

53145320
<p>None, except the incorporation of the full text of <a href="https://www.w3.org/TR/css-grid-1/">CSS Grid level 1</a>.
53155321

0 commit comments

Comments
 (0)