Skip to content

Commit 7468757

Browse files
committed
[css-text-3] Add match-parent value to text-align-last so that it actually works as intended now that it's shorthanded by text-align. #2577 (comment)
1 parent 0339e84 commit 7468757

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

css-text-3/Overview.bs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1338,7 +1338,7 @@ 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 other than ''justify-all'' are assigned to 'text-align-all'
1341+
Values other than ''justify-all'' or ''match-parent'' are assigned to 'text-align-all'
13421342
and reset 'text-align-last' to ''text-align-last/auto''.
13431343

13441344
Values have the following meanings:
@@ -1370,7 +1370,7 @@ Shaping Across Intra-word Breaks</h3>
13701370
Unless otherwise specified by 'text-align-last',
13711371
the last line before a forced break or the end of the block is ''start''-aligned.
13721372
<dt><dfn>justify-all</dfn></dt>
1373-
<dd>Sets both 'text-align' and 'text-align-last' to ''text-align/justify'',
1373+
<dd>Sets both 'text-align-all' and 'text-align-last' to ''text-align/justify'',
13741374
forcing the last line to justify as well.
13751375
<dt><dfn>match-parent</dfn></dt>
13761376
<dd>This value behaves the same as ''inherit''
@@ -1380,6 +1380,8 @@ Shaping Across Intra-word Breaks</h3>
13801380
(or the <a>initial containing block</a>’s, if there is no parent)
13811381
'direction' value
13821382
and results in a computed value of either 'left' or 'right'.
1383+
When specified on the 'text-align' shorthand,
1384+
sets both 'text-align-all' and 'text-align-last' to ''text-align/match-parent''.
13831385
</dl>
13841386

13851387
<p>A block of text is a stack of
@@ -1432,7 +1434,7 @@ Shaping Across Intra-word Breaks</h3>
14321434

14331435
<pre class="propdef">
14341436
Name: text-align-last
1435-
Value: auto | start | end | left | right | center | justify
1437+
Value: auto | start | end | left | right | center | justify | match-parent
14361438
Initial: auto
14371439
Applies to: block containers
14381440
Inherited: yes

0 commit comments

Comments
 (0)