You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: css-align/Overview.bs
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1067,8 +1067,8 @@ Inline/Main-Axis Alignment: the 'justify-self' property</h3>
1067
1067
<tr>
1068
1068
<th>''justify-self/normal'' Behavior
1069
1069
<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''.
1072
1072
</table>
1073
1073
1074
1074
See [[!CSS-GRID-1]] for details.
@@ -1232,7 +1232,8 @@ Block/Cross-Axis Alignment: the 'align-self' property</h3>
1232
1232
<tr>
1233
1233
<th>''align-self/normal'' Behavior
1234
1234
<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''.
1236
1237
</table>
1237
1238
1238
1239
<h3 id='place-self-property'>
@@ -1636,6 +1637,7 @@ Changes</h2>
1636
1637
Changes since the <a href="https://www.w3.org/TR/2016/WD-css-align-3-20160614/">previous Working Draft</a> include:
1637
1638
1638
1639
* 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'').
Copy file name to clipboardExpand all lines: css-grid/Overview.bs
+3-7Lines changed: 3 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1081,12 +1081,8 @@ Grid Items</h2>
1081
1081
Items with an intrinsic ratio follow the same rules,
1082
1082
except that in the case of a ''align-self/normal'' alignment value,
1083
1083
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 § 10.3.4</a>).
1090
1086
1091
1087
<div class="note">
1092
1088
The following informative table summarizes the automatic sizing of grid items:
@@ -1102,7 +1098,7 @@ Grid Items</h2>
1102
1098
<tr>
1103
1099
<th scope=row>''align-self/normal''
1104
1100
<td>Fill grid area
1105
-
<td>''object-fit/contain''-type sizing into grid area
0 commit comments