@@ -1362,7 +1362,7 @@ Shorthand for Text Box Trimming: the 'text-box' property</h3>
1362
1362
1363
1363
<pre class="propdef">
1364
1364
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'>>
1366
1366
Initial : normal
1367
1367
Applies to : [=block containers=] and [=inline boxes=]
1368
1368
Inherited : no
@@ -1374,24 +1374,20 @@ Shorthand for Text Box Trimming: the 'text-box' property</h3>
1374
1374
This property is a [=shorthand=] for setting the 'text-box-trim' and 'text-box-edge' properties
1375
1375
in a single declaration.
1376
1376
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,
1378
1378
it sets 'text-box-trim' to ''text-box-trim/none''
1379
1379
and 'text-box-edge' to ''text-box-edge/auto'' .
1380
1380
Otherwise, omitting the 'text-box-trim' value sets it to ''text-box-trim/both'' (not the initial value),
1381
1381
while omitting the 'text-box-edge' value sets it to ''text-box-edge/auto'' (the initial value).
1382
1382
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
-
1387
1383
ISSUE: Add examples.
1388
1384
1389
1385
<h3 id="text-box-trim">
1390
1386
Trimming Over/Under Text: the 'text-box-trim' property</h3>
1391
1387
1392
1388
<pre class="propdef">
1393
1389
Name : text-box-trim
1394
- Value : none | start | end | both
1390
+ Value : none | trim- start | trim- end | trim- both
1395
1391
Initial : none
1396
1392
Applies to : block containers and [=inline boxes=]
1397
1393
Inherited : no
@@ -1427,7 +1423,7 @@ Trimming Over/Under Text: the 'text-box-trim' property</h3>
1427
1423
regardless of 'text-box-edge'
1428
1424
(which nonetheless still affects [=line box=] sizing).
1429
1425
1430
- <dt> <dfn>start</dfn>
1426
+ <dt> <dfn>trim- start</dfn>
1431
1427
<dd>
1432
1428
For [=block containers=] :
1433
1429
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>
1441
1437
to match its [=content edge=] to the metric specified by 'text-box-edge'
1442
1438
(treating ''text-box-edge/leading'' as ''text-box-edge/text'' ).
1443
1439
1444
- <dt> <dfn>end</dfn>
1440
+ <dt> <dfn>trim- end</dfn>
1445
1441
<dd>
1446
1442
For [=block containers=] :
1447
1443
trim the [=block-end=] side of the last formatted line
@@ -1455,9 +1451,9 @@ Trimming Over/Under Text: the 'text-box-trim' property</h3>
1455
1451
to match its [=content edge=] to the metric specified by 'text-box-edge'
1456
1452
(treating ''text-box-edge/leading'' as ''text-box-edge/text'' ).
1457
1453
1458
- <dt> <dfn>both</dfn>
1454
+ <dt> <dfn>trim- both</dfn>
1459
1455
<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''
1461
1457
simultaneously.
1462
1458
</dl>
1463
1459
@@ -3065,6 +3061,9 @@ Changes</h2>
3065
3061
and added the 'text-box' [=shorthand=] .
3066
3062
(Issues <a href="https://github.com/w3c/csswg-drafts/issues/8829">8829</a>
3067
3063
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> )
3068
3067
<li> Use the innermost trim edge for 'text-box-trim'
3069
3068
when multiple ancestors request trimming.
3070
3069
(<a href="https://github.com/w3c/csswg-drafts/issues/5426">Issue 5426</a> )
0 commit comments