@@ -179,7 +179,7 @@ Layout of Line Boxes</h3>
179179
180180 The [=logical height=] of a [=line box=] is fitted to its contents
181181 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' .
183183 The first/last line boxes in a [=block container=] may additionally
184184 be trimmed by 'text-box-trim' .
185185
@@ -217,14 +217,14 @@ Layout Within Line Boxes</h3>
217217 this is their [=margin box=] .
218218 <li>
219219 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'' :
221221 this derived from their used 'line-height' ,
222222 ignoring any [=margin=] /[=border=] /[=padding=] ;
223223 see [[#inline-height]] .
224224
225225 <li>
226226 For other [=inline boxes=] :
227- this is derived from their 'text-box -edge' metrics,
227+ this is derived from their 'line-fit -edge' metrics,
228228 and includes any [=margin=] /[=border=] /[=padding=] ;
229229 see [[#inline-height]] .
230230 </ul>
@@ -366,7 +366,8 @@ Baselines and Metrics</h3>
366366 such as alignment, box sizing, and initial letter layout.
367367
368368 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' ):
370371 if any can be dropped, or any need to be added.
371372 See <a href="https://github.com/w3c/csswg-drafts/issues/859">Issue 859</a> .
372373
@@ -1149,7 +1150,7 @@ Text Edge Metrics: the 'line-fit-edge' property</h3>
11491150
11501151 <figure>
11511152 <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." >
11531154 <figcaption>
11541155 The 'line-fit-edge' property, showing values for ''line-fit-edge/leading'' ,
11551156 ''line-fit-edge/cap'' , and ''line-fit-edge/ex'' .
@@ -1243,7 +1244,7 @@ Calculating the Logical Height Contributions (“Layout Bounds”) of Inline Box
12431244 giving an effective ascent above the baseline of
12441245 <var> A′</var> = <var> A</var> + <var> L</var> /2,
12451246 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''
12471248 and this is not the [=root inline box=] ,
12481249 if the [=half-leading=] is positive, treat it as zero.
12491250 The [=layout bounds=] exactly encloses
@@ -1400,15 +1401,12 @@ Trimming Over/Under Text: the 'text-box-trim' property</h3>
14001401
14011402 On [=inline boxes=] ,
14021403 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.
14071405
14081406 On [=block containers=] ,
14091407 specifies whether to trim [=half-leading=]
14101408 at the start/end of its content
1411- to the corresponding 'text-box-edge' metric
1409+ to the specified 'text-box-edge' metric
14121410 to better match the box’s [=content edge=] to its text content.
14131411
14141412 Values have the following meanings:
@@ -1422,36 +1420,33 @@ Trimming Over/Under Text: the 'text-box-trim' property</h3>
14221420 When applied to an [=inline box=] ,
14231421 specifies that the over/under [=content edges=] coincide
14241422 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' .
14271424
14281425 <dt> <dfn>trim-start</dfn>
14291426 <dd>
14301427 For [=block containers=] :
14311428 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=] .
14331430 If there is no such line,
14341431 or if there is intervening non-zero padding or borders,
14351432 there is no effect.
14361433
14371434 For [=inline boxes=] :
14381435 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' .
14411437
14421438 <dt> <dfn>trim-end</dfn>
14431439 <dd>
14441440 For [=block containers=] :
14451441 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=] .
14471443 If there is no such line,
14481444 or if there is intervening non-zero padding or borders,
14491445 there is no effect.
14501446
14511447 For [=inline boxes=] :
14521448 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' .
14551450
14561451 <dt> <dfn>trim-both</dfn>
14571452 <dd>
@@ -1487,7 +1482,7 @@ Text Trimming Metrics: the 'text-box-edge' property</h3>
14871482 This property specifies the metrics to use for 'text-box-trim' effects.
14881483 Values have the same meanings as for 'line-fit-edge' ;
14891484 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=] ,
14911486 interpreting ''line-fit-edge/leading'' (the [=initial value=] ) as ''line-fit-edge/text'' .
14921487
14931488 Note: This property can be set together with 'text-box-trim'
@@ -2086,7 +2081,7 @@ Properties Applying to Initial Letters</h4>
20862081 All properties that apply to an <a>inline box</a>
20872082 also apply to an <a>inline initial letter</a>
20882083 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' .
20902085 <!-- Basically, any properties defined in css-inline
20912086 except those specific to initial letters,
20922087 so keep this list updated as we add things to this spec. -->
@@ -3054,6 +3049,14 @@ A.3: Synthesizing Baselines for Atomic Inlines</h3>
30543049<h2 class="no-num" id="changes">
30553050Changes</h2>
30563051
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+
30573060 Changes since the
30583061 <a href="https://www.w3.org/TR/2023/WD-css-inline-3-20230401/">1 April 2023 Working Draft</a> :
30593062 <ul>
0 commit comments