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-text/Overview.bs
+74-36Lines changed: 74 additions & 36 deletions
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,6 @@ Editor: Koji Ishii, Invited Expert, kojiishi@gluesoft.co.jp
17
17
Abstract: This CSS3 module defines properties for text manipulation and specifies their processing model. It covers line breaking, justification and alignment, white space handling, and text transformation.
18
18
At Risk: the ''full-width'' value of 'text-transform'
19
19
At Risk: the <length> values of the 'tab-size' property
20
-
At Risk: the ''start end'' value of 'text-align'
21
20
At Risk: the 'text-justify' property
22
21
At Risk: the percentage values of 'word-spacing'
23
22
At Risk: the 'hanging-punctuation' property
@@ -1214,24 +1213,8 @@ Canonical order: N/A
1214
1213
1215
1214
<p>Alignment and justification controls how inline content is distributed within a line box.
1216
1215
1217
-
<div class="issue">
1218
-
<p>There's a proposal for 'text-align' to become a shorthand for 'text-align-last' and ''text-align-all''.
1219
-
This has the advantage that 'text-align-last' can be set in a single declaration with 'text-align',
1220
-
e.g. ''text-align: justify-all'' (justify align all lines) or ''text-align: justify center'' (justify all lines except center last line).
1221
-
It has the disadvantage of creating the ''text-align-all'' property.
1222
-
There are also some cascading considerations:
1223
-
if 'text-align-last' is part of the shorthand, then any declaration of 'text-align' will reset it;
1224
-
it's unclear if this is an advantage or a disadvantage.
1225
-
1226
-
<p>The CSSWG has no strong opinion on this issue, and solicits feedback from others.
1227
-
We unfortunately can't <em>drop</em>'text-align-last' in favor of an expanded value set in 'text-align'
1228
-
because of existing content and implementations.
1229
-
However, because authors have a pattern of typing 'text-align-last' after 'text-align',
1230
-
we can change their interaction without breaking content.
1231
-
</div>
1232
-
1233
1216
<h3 id="text-align-property">
1234
-
Text Alignment: the 'text-align' property</h3>
1217
+
Text Alignment: the 'text-align' shorthand</h3>
1235
1218
1236
1219
<table class="propdef">
1237
1220
<tr>
@@ -1241,7 +1224,7 @@ Canonical order: N/A
1241
1224
<tr>
1242
1225
<th><a href="#values">Value</a>:
1243
1226
<td>start | end | left | right | center |
1244
-
justify | match-parent | start end
1227
+
justify | match-parent | justify-all
1245
1228
</td>
1246
1229
</tr>
1247
1230
<tr>
@@ -1276,7 +1259,8 @@ Canonical order: N/A
1276
1259
<td>N/A
1277
1260
</table>
1278
1261
1279
-
<p>This property describes how the inline-level content of a block
1262
+
<p>This shorthand property sets the 'text-align-all' and 'text-align-last' properties
1263
+
and describes how the inline-level content of a block
1280
1264
is aligned along the inline axis
1281
1265
if the content does not completely fill the line box.
1282
1266
Values have the following meanings:</p>
@@ -1305,19 +1289,21 @@ Canonical order: N/A
1305
1289
<dt><dfn>justify</dfn></dt>
1306
1290
<dd>Text is justified according to the method specified by the 'text-justify' property,
1307
1291
in order to exactly fill the line box.
1292
+
Unless otherwise specified by 'text-align-last',
1293
+
the last line before a forced break or the end of the block is ''start''-aligned.
1294
+
<dt><dfn>justify-all</dfn></dt>
1295
+
<dd>Same as ''justify'', except 'text-align-last' is also set to ''justify'',
1296
+
forcing the last line to justify as well.
1308
1297
<dt><dfn>match-parent</dfn></dt>
1309
1298
<dd>This value behaves the same as ''inherit''
1310
1299
(computes to its parent's computed value)
1311
1300
except that an inherited ''start'' or ''end'' keyword
1312
1301
is interpreted against its parent's 'direction' value
1313
1302
and results in a computed value of either 'left' or 'right'.
1314
-
<dt><dfn>start end</dfn>
1315
-
<dd>Specifies ''start'' alignment of the first line and any line
1316
-
immediately after a <i>forced line break</i>;
1317
-
and ''end'' alignment of any remaining lines.
1318
-
<p class="issue">This value will be removed at the end of the LC period unless someone comes up with a more understandable keyword to replace it with.
1319
1303
</dl>
1320
1304
1305
+
<p>All values except ''justify-all'' reset 'text-align-last' to ''text-align-last/auto''.
0 commit comments