Skip to content

Commit

Permalink
[css-inline-3] Make text-box-edge non-inherited
Browse files Browse the repository at this point in the history
  • Loading branch information
fantasai committed Dec 13, 2024
1 parent b92a2ac commit 8c2f0a1
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions css-inline-3/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1407,9 +1407,11 @@ Trimming Over/Under Text: the 'text-box-trim' property</h3>
On [=block containers=],
as well as on each column of a [=multi-column container=],
specifies whether to trim [=half-leading=]
at the start/end of its content
to the specified 'text-box-edge' metric
to better match the box’s [=content edge=] to its text content.
at the start/end of the box's content
to better match its [=content edge=] to its text content.
The trimming edge in this case
is specified by the start/end 'text-box-edge' value
of the affected [=line box=]’s [=containing block=].

Values have the following meanings:

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

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

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

0 comments on commit 8c2f0a1

Please sign in to comment.