@@ -179,7 +179,7 @@ Layout of Line Boxes</h3>
179
179
180
180
The [=logical height=] of a [=line box=] is fitted to its contents
181
181
once they have been [[#alignment|block-axis aligned]] .
182
- This fit is controlled by 'line-height' and 'text-box -edge' .
182
+ This fit is controlled by 'line-height' and 'line-fit -edge' .
183
183
The first/last line boxes in a [=block container=] may additionally
184
184
be trimmed by 'text-box-trim' .
185
185
@@ -217,14 +217,14 @@ Layout Within Line Boxes</h3>
217
217
this is their [=margin box=] .
218
218
<li>
219
219
For the [=root inline box=] ,
220
- and for [=inline boxes=] with ''text-box -edge: leading'' :
220
+ and for [=inline boxes=] with ''line-fit -edge: leading'' :
221
221
this derived from their used 'line-height' ,
222
222
ignoring any [=margin=] /[=border=] /[=padding=] ;
223
223
see [[#inline-height]] .
224
224
225
225
<li>
226
226
For other [=inline boxes=] :
227
- this is derived from their 'text-box -edge' metrics,
227
+ this is derived from their 'line-fit -edge' metrics,
228
228
and includes any [=margin=] /[=border=] /[=padding=] ;
229
229
see [[#inline-height]] .
230
230
</ul>
@@ -366,7 +366,8 @@ Baselines and Metrics</h3>
366
366
such as alignment, box sizing, and initial letter layout.
367
367
368
368
Issue: The CSSWG would like to know which baseline values are necessary
369
- for each property that uses them ('dominant-baseline' , 'alignment-baseline' , 'text-box-edge' , 'initial-letter-align' ):
369
+ for each property that uses them
370
+ ('dominant-baseline' , 'alignment-baseline' , 'text-box-edge' , 'line-fit-edge' , 'initial-letter-align' ):
370
371
if any can be dropped, or any need to be added.
371
372
See <a href="https://github.com/w3c/csswg-drafts/issues/859">Issue 859</a> .
372
373
@@ -1149,7 +1150,7 @@ Text Edge Metrics: the 'line-fit-edge' property</h3>
1149
1150
1150
1151
<figure>
1151
1152
<img src="images/text-edge.png" width="480"
1152
- alt="Three different values of the text-box -edge property." >
1153
+ alt="Three different values of the line-fit -edge property." >
1153
1154
<figcaption>
1154
1155
The 'line-fit-edge' property, showing values for ''line-fit-edge/leading'' ,
1155
1156
''line-fit-edge/cap'' , and ''line-fit-edge/ex'' .
@@ -1243,7 +1244,7 @@ Calculating the Logical Height Contributions (“Layout Bounds”) of Inline Box
1243
1244
giving an effective ascent above the baseline of
1244
1245
<var> A′</var> = <var> A</var> + <var> L</var> /2,
1245
1246
and an effective descent of <var> D′</var> = <var> D</var> + <var> L</var> /2.
1246
- However, if 'line-fit-edge' is not ''text-box -edge/leading''
1247
+ However, if 'line-fit-edge' is not ''line-fit -edge/leading''
1247
1248
and this is not the [=root inline box=] ,
1248
1249
if the [=half-leading=] is positive, treat it as zero.
1249
1250
The [=layout bounds=] exactly encloses
@@ -1400,15 +1401,12 @@ Trimming Over/Under Text: the 'text-box-trim' property</h3>
1400
1401
1401
1402
On [=inline boxes=] ,
1402
1403
specifies whether to trim the [=content box=]
1403
- to match its corresponding 'text-box-edge' metric.
1404
-
1405
- ISSUE: Should inline boxes automatically do this?
1406
- And/or is it better for line sizing and content-box sizing to be separably controlled?
1404
+ to match the specified 'text-box-edge' metric.
1407
1405
1408
1406
On [=block containers=] ,
1409
1407
specifies whether to trim [=half-leading=]
1410
1408
at the start/end of its content
1411
- to the corresponding 'text-box-edge' metric
1409
+ to the specified 'text-box-edge' metric
1412
1410
to better match the box’s [=content edge=] to its text content.
1413
1411
1414
1412
Values have the following meanings:
@@ -1422,36 +1420,33 @@ Trimming Over/Under Text: the 'text-box-trim' property</h3>
1422
1420
When applied to an [=inline box=] ,
1423
1421
specifies that the over/under [=content edges=] coincide
1424
1422
with the [=text-over=] /[=text-under=] baselines
1425
- regardless of 'text-box-edge'
1426
- (which nonetheless still affects [=line box=] sizing).
1423
+ regardless of 'text-box-edge' .
1427
1424
1428
1425
<dt> <dfn>trim-start</dfn>
1429
1426
<dd>
1430
1427
For [=block containers=] :
1431
1428
trim the [=block-start=] side of the <a>first formatted line</a>
1432
- to the corresponding 'text-box-edge' metric of its [=root inline box=] .
1429
+ to the specified metric of its [=root inline box=] .
1433
1430
If there is no such line,
1434
1431
or if there is intervening non-zero padding or borders,
1435
1432
there is no effect.
1436
1433
1437
1434
For [=inline boxes=] :
1438
1435
trims the [=block-start=] side of the box
1439
- to match its [=content edge=] to the metric specified by 'text-box-edge'
1440
- (treating ''text-box-edge/leading'' as ''text-box-edge/text'' ).
1436
+ to match its [=content edge=] to the metric specified by 'text-box-edge' .
1441
1437
1442
1438
<dt> <dfn>trim-end</dfn>
1443
1439
<dd>
1444
1440
For [=block containers=] :
1445
1441
trim the [=block-end=] side of the last formatted line
1446
- to the corresponding 'text-box-edge' metric of its [=root inline box=] .
1442
+ to the specified metric of its [=root inline box=] .
1447
1443
If there is no such line,
1448
1444
or if there is intervening non-zero padding or borders,
1449
1445
there is no effect.
1450
1446
1451
1447
For [=inline boxes=] :
1452
1448
trims the [=block-end=] side of the box
1453
- to match its [=content edge=] to the metric specified by 'text-box-edge'
1454
- (treating ''text-box-edge/leading'' as ''text-box-edge/text'' ).
1449
+ to match its [=content edge=] to the metric specified by 'text-box-edge' .
1455
1450
1456
1451
<dt> <dfn>trim-both</dfn>
1457
1452
<dd>
@@ -1487,7 +1482,7 @@ Text Trimming Metrics: the 'text-box-edge' property</h3>
1487
1482
This property specifies the metrics to use for 'text-box-trim' effects.
1488
1483
Values have the same meanings as for 'line-fit-edge' ;
1489
1484
the <dfn for=text-box-edge value>auto</dfn> keyword
1490
- computes to the value of 'line-fit-edge' ,
1485
+ uses the value of 'line-fit-edge' on the [=root inline=] of the the affected [=line box=] ,
1491
1486
interpreting ''line-fit-edge/leading'' (the [=initial value=] ) as ''line-fit-edge/text'' .
1492
1487
1493
1488
Note: This property can be set together with 'text-box-trim'
@@ -2086,7 +2081,7 @@ Properties Applying to Initial Letters</h4>
2086
2081
All properties that apply to an <a>inline box</a>
2087
2082
also apply to an <a>inline initial letter</a>
2088
2083
except for 'vertical-align' and its <a>sub-properties</a> ,
2089
- 'font-size' , 'line-height' , 'text-box -edge' , and 'inline-sizing' .
2084
+ 'font-size' , 'line-height' , 'line-fit -edge' , and 'inline-sizing' .
2090
2085
<!-- Basically, any properties defined in css-inline
2091
2086
except those specific to initial letters,
2092
2087
so keep this list updated as we add things to this spec. -->
@@ -3054,6 +3049,14 @@ A.3: Synthesizing Baselines for Atomic Inlines</h3>
3054
3049
<h2 class="no-num" id="changes">
3055
3050
Changes</h2>
3056
3051
3052
+ Changes since the
3053
+ <a href="https://www.w3.org/TR/2024/WD-css-inline-3-20240808/">8 August 2024 Working Draft</a> :
3054
+ <ul>
3055
+ <li> Some minor clean-up of references to 'text-box-edge' left over from when it also represented 'line-fit-edge' .
3056
+ <li> Adjusted ''text-box-edge: auto'' to reference 'line-fit-edge' on the affected [=line box=]
3057
+ rather than computing to the 'line-fit-edge' of the specifying element.
3058
+ </ul>
3059
+
3057
3060
Changes since the
3058
3061
<a href="https://www.w3.org/TR/2023/WD-css-inline-3-20230401/">1 April 2023 Working Draft</a> :
3059
3062
<ul>
0 commit comments