Skip to content

Commit e58e46a

Browse files
committed
[css-text-3] Bugfixes to text-align/text-align-all per #2577 (comment) #2577
1 parent f71188d commit e58e46a

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

css-text-3/Overview.bs

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1329,7 +1329,7 @@ Shaping Across Intra-word Breaks</h3>
13291329
Initial: start
13301330
Applies to: block containers
13311331
Inherited: yes
1332-
Computed value: as specified, except for ''match-parent'' which computes as defined below
1332+
Computed value: See individual properties
13331333
Canonical order: n/a
13341334
</pre>
13351335

@@ -1338,7 +1338,10 @@ Shaping Across Intra-word Breaks</h3>
13381338
and describes how the inline-level content of a block
13391339
is aligned along the inline axis
13401340
if the content does not completely fill the line box.
1341-
Values have the following meanings:</p>
1341+
Values other than ''justify-all'' are assigned to 'text-align-all'
1342+
and reset 'text-align-last' to ''text-align-last/auto''.
1343+
1344+
Values have the following meanings:
13421345

13431346
<dl dfn-for=text-align dfn-type=value>
13441347
<dt><dfn>start</dfn></dt>
@@ -1367,18 +1370,18 @@ Shaping Across Intra-word Breaks</h3>
13671370
Unless otherwise specified by 'text-align-last',
13681371
the last line before a forced break or the end of the block is ''start''-aligned.
13691372
<dt><dfn>justify-all</dfn></dt>
1370-
<dd>Same as ''justify'', except 'text-align-last' is also set to ''justify'',
1373+
<dd>Sets both 'text-align' and 'text-align-last' to ''text-align/justify'',
13711374
forcing the last line to justify as well.
13721375
<dt><dfn>match-parent</dfn></dt>
13731376
<dd>This value behaves the same as ''inherit''
13741377
(computes to its parent's computed value)
1375-
except that an inherited ''start'' or ''end'' keyword
1376-
is interpreted against its parent's 'direction' value
1378+
except that an <a>inherited value</a> of ''start'' or ''end''
1379+
is interpreted against the parent’s
1380+
(or the <a>initial containing block</a>’s, if there is no parent)
1381+
'direction' value
13771382
and results in a computed value of either 'left' or 'right'.
13781383
</dl>
13791384

1380-
<p>All values except ''justify-all'' reset 'text-align-last' to ''text-align-last/auto''.
1381-
13821385
<p>A block of text is a stack of
13831386
<a href="https://www.w3.org/TR/CSS21/visuren.html#line-box">line boxes</a>.
13841387
This property specifies how the inline-level boxes within each line box
@@ -1412,6 +1415,7 @@ Shaping Across Intra-word Breaks</h3>
14121415
Initial: start
14131416
Applies to: block containers
14141417
Inherited: yes
1418+
Computed value: as specified, except for ''match-parent'' which computes as defined above
14151419
Canonical order: n/a
14161420
</pre>
14171421

0 commit comments

Comments
 (0)