@@ -1362,7 +1362,7 @@ Shorthand for Text Box Trimming: the 'text-box' property</h3>
13621362
13631363 <pre class="propdef">
13641364 Name : text-box
1365- Value : normal | [ start | end | both ] || [ text | cap | ex | ideographic | ideographic-ink ] [ text | alphabetic | ideographic | ideographic-ink ]?
1365+ Value : normal | <<' text-box-trim'>> || <<'text-box-edge'>>
13661366 Initial : normal
13671367 Applies to : [=block containers=] and [=inline boxes=]
13681368 Inherited : no
@@ -1374,24 +1374,20 @@ Shorthand for Text Box Trimming: the 'text-box' property</h3>
13741374 This property is a [=shorthand=] for setting the 'text-box-trim' and 'text-box-edge' properties
13751375 in a single declaration.
13761376
1377- If the single keyword '' text-box-edge/ normal'' is specified,
1377+ If the single keyword <dfn for= text-box type=value> normal</dfn> is specified,
13781378 it sets 'text-box-trim' to ''text-box-trim/none''
13791379 and 'text-box-edge' to ''text-box-edge/auto'' .
13801380 Otherwise, omitting the 'text-box-trim' value sets it to ''text-box-trim/both'' (not the initial value),
13811381 while omitting the 'text-box-edge' value sets it to ''text-box-edge/auto'' (the initial value).
13821382
1383- ISSUE(8067): We should rename the 'text-box-trim' values to add ''trim-*'' prefixes.
1384- This would make the shorthand clearer,
1385- and also make its value space consistent with 'text-spacing' .
1386-
13871383 ISSUE: Add examples.
13881384
13891385<h3 id="text-box-trim">
13901386Trimming Over/Under Text: the 'text-box-trim' property</h3>
13911387
13921388 <pre class="propdef">
13931389 Name : text-box-trim
1394- Value : none | start | end | both
1390+ Value : none | trim- start | trim- end | trim- both
13951391 Initial : none
13961392 Applies to : block containers and [=inline boxes=]
13971393 Inherited : no
@@ -1427,7 +1423,7 @@ Trimming Over/Under Text: the 'text-box-trim' property</h3>
14271423 regardless of 'text-box-edge'
14281424 (which nonetheless still affects [=line box=] sizing).
14291425
1430- <dt> <dfn>start</dfn>
1426+ <dt> <dfn>trim- start</dfn>
14311427 <dd>
14321428 For [=block containers=] :
14331429 trim the [=block-start=] side of the <a>first formatted line</a>
@@ -1441,7 +1437,7 @@ Trimming Over/Under Text: the 'text-box-trim' property</h3>
14411437 to match its [=content edge=] to the metric specified by 'text-box-edge'
14421438 (treating ''text-box-edge/leading'' as ''text-box-edge/text'' ).
14431439
1444- <dt> <dfn>end</dfn>
1440+ <dt> <dfn>trim- end</dfn>
14451441 <dd>
14461442 For [=block containers=] :
14471443 trim the [=block-end=] side of the last formatted line
@@ -1455,9 +1451,9 @@ Trimming Over/Under Text: the 'text-box-trim' property</h3>
14551451 to match its [=content edge=] to the metric specified by 'text-box-edge'
14561452 (treating ''text-box-edge/leading'' as ''text-box-edge/text'' ).
14571453
1458- <dt> <dfn>both</dfn>
1454+ <dt> <dfn>trim- both</dfn>
14591455 <dd>
1460- Specifies the behavior of ''text-box-trim/start'' and ''text-box-trim/end''
1456+ Specifies the behavior of ''text-box-trim/trim- start'' and ''text-box-trim/trim- end''
14611457 simultaneously.
14621458 </dl>
14631459
@@ -3065,6 +3061,9 @@ Changes</h2>
30653061 and added the 'text-box' [=shorthand=] .
30663062 (Issues <a href="https://github.com/w3c/csswg-drafts/issues/8829">8829</a>
30673063 and <a href="https://github.com/w3c/csswg-drafts/issues/8696">8696</a> )
3064+ <li> Added ''trim-*'' prefix to 'text-box-trim' keywords
3065+ so that they make sense in the context of the 'text-box' shorthand.
3066+ (<a href="https://github.com/w3c/csswg-drafts/issues/10675">Issue 10675</a> )
30683067 <li> Use the innermost trim edge for 'text-box-trim'
30693068 when multiple ancestors request trimming.
30703069 (<a href="https://github.com/w3c/csswg-drafts/issues/5426">Issue 5426</a> )
0 commit comments