Skip to content

Commit 8c2f0a1

Browse files
committed
[css-inline-3] Make text-box-edge non-inherited
1 parent b92a2ac commit 8c2f0a1

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

css-inline-3/Overview.bs

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1407,9 +1407,11 @@ Trimming Over/Under Text: the 'text-box-trim' property</h3>
14071407
On [=block containers=],
14081408
as well as on each column of a [=multi-column container=],
14091409
specifies whether to trim [=half-leading=]
1410-
at the start/end of its content
1411-
to the specified 'text-box-edge' metric
1412-
to better match the box’s [=content edge=] to its text content.
1410+
at the start/end of the box's content
1411+
to better match its [=content edge=] to its text content.
1412+
The trimming edge in this case
1413+
is specified by the start/end 'text-box-edge' value
1414+
of the affected [=line box=]’s [=containing block=].
14131415

14141416
Values have the following meanings:
14151417

@@ -1486,7 +1488,7 @@ Text Trimming Metrics: the 'text-box-edge' property</h3>
14861488
Value: auto | <<text-edge>>
14871489
Initial: auto
14881490
Applies to: [=block containers=] and [=inline boxes=]
1489-
Inherited: no
1491+
Inherited: yes
14901492
Percentages: N/A
14911493
Computed value: the specified keyword
14921494
Animation type: discrete
@@ -1495,7 +1497,7 @@ Text Trimming Metrics: the 'text-box-edge' property</h3>
14951497
This property specifies the metrics to use for 'text-box-trim' effects.
14961498
Values have the same meanings as for 'line-fit-edge';
14971499
the <dfn for=text-box-edge value>auto</dfn> keyword
1498-
uses the value of 'line-fit-edge' on the [=root inline box=] of the the affected [=line box=],
1500+
uses the value of 'line-fit-edge',
14991501
interpreting ''line-fit-edge/leading'' (the [=initial value=]) as ''line-fit-edge/text''.
15001502

15011503
Note: This property can be set together with 'text-box-trim'
@@ -3064,6 +3066,9 @@ Changes</h2>
30643066

30653067
Changes since the <a href="https://www.w3.org/TR/2024/WD-css-inline-3-20240812/">12 August 2024 Working Draft</a>:
30663068
<ul>
3069+
<li>Made 'text-box-edge' inherit; 'text-box-trim' references
3070+
the relevant value applied to the affected line box(es).
3071+
(<a href="https://github.com/w3c/csswg-drafts/issues/10904">Issue 10904</a>)
30673072
<li>Defined behavior of 'text-box-trim' on [=multi-column containers=],
30683073
and clarified its application to (and through) other formatting contexts.
30693074
(<a href="https://github.com/w3c/csswg-drafts/issues/5335">Issue 5335</a>,

0 commit comments

Comments
 (0)