Skip to content

Commit 01ab574

Browse files
committed
[css-align] Define the writing mode fo the alignment subject/container for the *-self properties.
1 parent 12461c9 commit 01ab574

File tree

1 file changed

+38
-22
lines changed

1 file changed

+38
-22
lines changed

css-align/Overview.bs

Lines changed: 38 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -988,14 +988,15 @@ Inline/Main-Axis Alignment: the 'justify-self' property</h3>
988988
<tr>
989989
<th>'justify-self' Axis
990990
<td>
991-
The block’s containing block’s <a>inline axis</a>.
991+
The block’s <a>containing block’s</a> <a>inline axis</a>.
992992
<tr>
993993
<th><a>Alignment Container</a>
994994
<td>
995-
The block's containing block,
996-
except that for block-level elements that establish a block formatting context
995+
The block's <a>containing block</a>,
996+
except that for block-level elements that establish a <a>block formatting context</a>
997997
and are placed next to a float,
998-
the <a>alignment container</a> is reduced by the space taken up by the float.
998+
the <a>alignment container</a> is reduced by the space taken up by the float,
999+
assuming the <a>writing mode</a> of the <a>containing block</a>.
9991000

10001001
Issue: This is the legacy behavior of HTML <code>align</code>.
10011002
Do we want to still do this,
@@ -1005,7 +1006,8 @@ Inline/Main-Axis Alignment: the 'justify-self' property</h3>
10051006
<tr>
10061007
<th><a>Alignment Subject</a>
10071008
<td>
1008-
The block's margin box.
1009+
The block's margin box,
1010+
assuming the <a>writing mode</a> of the block.
10091011
<tr>
10101012
<th>''justify-self/normal'' Behavior
10111013
<td>
@@ -1040,12 +1042,14 @@ Inline/Main-Axis Alignment: the 'justify-self' property</h3>
10401042
<tr>
10411043
<th><a>Alignment Container</a>
10421044
<td>
1043-
The box's containing block,
1044-
as modified by the inset properties ('top'/'right'/'bottom'/'left').
1045+
The box's <a>containing block</a>,
1046+
as modified by the inset properties ('top'/'right'/'bottom'/'left'),
1047+
assuming the <a>writing mode</a> of the <a>containing block</a>.
10451048
<tr>
10461049
<th><a>Alignment Subject</a>
10471050
<td>
1048-
The box's margin box.
1051+
The box's margin box,
1052+
assuming the <a>writing mode</a> of the <a>box</a>.
10491053
<tr>
10501054
<th>''justify-self/normal'' Behavior
10511055
<td>
@@ -1093,12 +1097,14 @@ Inline/Main-Axis Alignment: the 'justify-self' property</h3>
10931097
<th><a>Alignment Container</a>
10941098
<td>
10951099
The box's <a>static-position rectangle</a>,
1096-
as defined by its parent box's layout mode.
1100+
as defined by its parent box's layout mode,
1101+
assuming the <a>writing mode</a> of the <a href="https://www.w3.org/TR/CSS2/visudet.html#static-position">static-position containing block</a>.
10971102
<tr>
10981103
<th><a>Alignment Subject</a>
10991104
<td>
11001105
The box's margin box <em>after</em> laying out the box,
1101-
treated as fixed-size for the purpose of alignment.
1106+
treated as fixed-size for the purpose of alignment,
1107+
assuming the <a>writing mode</a> of the box.
11021108
<tr>
11031109
<th>''justify-self/normal'' Behavior
11041110
<td>
@@ -1127,11 +1133,13 @@ Inline/Main-Axis Alignment: the 'justify-self' property</h3>
11271133
<tr>
11281134
<th><a>Alignment Container</a>
11291135
<td>
1130-
The <a>grid item’s</a> <a>grid area</a>.
1136+
The <a>grid item’s</a> <a>grid area</a>,
1137+
assuming the <a>writing mode</a> of the <a>grid container</a>.
11311138
<tr>
11321139
<th><a>Alignment Subject</a>
11331140
<td>
1134-
The <a>grid item’s</a> margin box.
1141+
The <a>grid item’s</a> margin box,
1142+
assuming the <a>writing mode</a> of the <a>grid item</a>.
11351143
<tr>
11361144
<th>''justify-self/normal'' Behavior
11371145
<td>
@@ -1210,16 +1218,18 @@ Block/Cross-Axis Alignment: the 'align-self' property</h3>
12101218
<tr>
12111219
<th>'align-self' Axis
12121220
<td>
1213-
The box’s containing block’s <a>block axis</a>.
1221+
The box’s <a>containing block’s</a> <a>block axis</a>.
12141222
<tr>
12151223
<th><a>Alignment Container</a>
12161224
<td>
1217-
The box's containing block,
1218-
as modified by the inset properties.
1225+
The box's <a>containing block</a>,
1226+
as modified by the inset properties,
1227+
assuming the <a>writing mode</a> of the <a>containing block</a>.
12191228
<tr>
12201229
<th><a>Alignment Subject</a>
12211230
<td>
1222-
The box’s margin box.
1231+
The box’s margin box,
1232+
assuming the <a>writing mode</a> of the box.
12231233
<tr>
12241234
<th>''align-self/normal'' Behavior
12251235
<td>
@@ -1267,12 +1277,14 @@ Block/Cross-Axis Alignment: the 'align-self' property</h3>
12671277
<th><a>Alignment Container</a>
12681278
<td>
12691279
The box's <a>static-position rectangle</a>,
1270-
as defined by its parent box's layout mode.
1280+
as defined by its parent box's layout mode,
1281+
assuming the <a>writing mode</a> of the <a href="https://www.w3.org/TR/CSS2/visudet.html#static-position">static-position containing block</a>.
12711282
<tr>
12721283
<th><a>Alignment Subject</a>
12731284
<td>
12741285
The box's margin box <em>after</em> laying out the box,
1275-
treated as fixed-size for the purpose of alignment.
1286+
treated as fixed-size for the purpose of alignment,
1287+
assuming the <a>writing mode</a> of the box.
12761288
<tr>
12771289
<th>''align-self/normal'' Behavior
12781290
<td>
@@ -1295,11 +1307,13 @@ Block/Cross-Axis Alignment: the 'align-self' property</h3>
12951307
<tr>
12961308
<th><a>Alignment Container</a>
12971309
<td>
1298-
The <a>flex line</a> the <a>flex item</a> is in.
1310+
The <a>flex line</a> the <a>flex item</a> is in,
1311+
assuming the <a>writing mode</a> of the <a>flex container</a>.
12991312
<tr>
13001313
<th><a>Alignment Subject</a>
13011314
<td>
1302-
The <a>flex item’s</a> margin box.
1315+
The <a>flex item’s</a> margin box,
1316+
assuming the <a>writing mode</a> of the <a>flex item</a>.
13031317
<tr>
13041318
<th>''align-self/normal'' Behavior
13051319
<td>
@@ -1318,11 +1332,13 @@ Block/Cross-Axis Alignment: the 'align-self' property</h3>
13181332
<tr>
13191333
<th><a>Alignment Container</a>
13201334
<td>
1321-
The [=grid item’s=] <a>grid area</a>.
1335+
The [=grid item’s=] <a>grid area</a>,
1336+
assuming the <a>writing mode</a> of the <a>grid container</a>.
13221337
<tr>
13231338
<th><a>Alignment Subject</a>
13241339
<td>
1325-
The <a>grid item’s</a> margin box.
1340+
The <a>grid item’s</a> margin box,
1341+
assuming the <a>writing mode</a> of the <a>grid item</a>.
13261342
<tr>
13271343
<th>''align-self/normal'' Behavior
13281344
<td>

0 commit comments

Comments
 (0)