Skip to content

Commit f4ca22f

Browse files
committed
[css-grid][css-align] Address latest conclusions on w3c#523.
1 parent 6b825db commit f4ca22f

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

css-align/Overview.bs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,8 +1067,8 @@ Inline/Main-Axis Alignment: the 'justify-self' property</h3>
10671067
<tr>
10681068
<th>''justify-self/normal'' Behavior
10691069
<td>
1070-
Generally behaves as ''justify-self/stretch'',
1071-
except that items with an intrinsic ratio maintain that ratio.
1070+
Behaves as ''justify-self/stretch'',
1071+
except that items with an intrinsic aspect ratio are treated as ''justify-self/start''.
10721072
</table>
10731073

10741074
See [[!CSS-GRID-1]] for details.
@@ -1232,7 +1232,8 @@ Block/Cross-Axis Alignment: the 'align-self' property</h3>
12321232
<tr>
12331233
<th>''align-self/normal'' Behavior
12341234
<td>
1235-
Behaves as ''align-self/stretch''.
1235+
Behaves as ''justify-self/stretch'',
1236+
except that items with an intrinsic aspect ratio are treated as ''justify-self/start''.
12361237
</table>
12371238

12381239
<h3 id='place-self-property'>
@@ -1636,6 +1637,7 @@ Changes</h2>
16361637
Changes since the <a href="https://www.w3.org/TR/2016/WD-css-align-3-20160614/">previous Working Draft</a> include:
16371638

16381639
* Make ''align-self/auto'' values of 'align-self' and 'justify-self' compute to themselves.
1640+
* Use the intrinsic size on grid items with an intrinsic aspect ratio so that we honor their aspect ratio by default (i.e. when 'align-self' and 'justify-self' are ''align-self/normal'').
16391641

16401642
<h2 id="privacy-security">
16411643
Privacy and Security Considerations</h2>

css-grid/Overview.bs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,12 +1081,8 @@ Grid Items</h2>
10811081
Items with an intrinsic ratio follow the same rules,
10821082
except that in the case of a ''align-self/normal'' alignment value,
10831083
an ''width/auto'' size for the <a>grid item</a>
1084-
is further reduced or increased in that axis
1085-
(while maintaining any specified minimum or maximum size)
1086-
if necessary to maintain the intrinsic aspect ratio.
1087-
If both axes have ''align-self/normal'' alignment and ''width/auto'' sizing,
1088-
then this adjustment is made in the axis that needs reduction,
1089-
in order to avoid overflowing the <a>grid area</a>.
1084+
is sized as for ''align-self: start''
1085+
(consistent with the width calculation rules for block-level replaced elements in <a href="https://www.w3.org/TR/CSS2/visudet.html#block-replaced-width">CSS2.1 &sect; 10.3.4</a>).
10901086

10911087
<div class="note">
10921088
The following informative table summarizes the automatic sizing of grid items:
@@ -1102,7 +1098,7 @@ Grid Items</h2>
11021098
<tr>
11031099
<th scope=row>''align-self/normal''
11041100
<td>Fill grid area
1105-
<td>''object-fit/contain''-type sizing into grid area
1101+
<td>Use intrinsic size
11061102
<tr>
11071103
<th scope=row>''align-self/stretch''
11081104
<td>Fill grid area

0 commit comments

Comments
 (0)