Skip to content

Commit

Permalink
[css-text-decor-4] Define <length-percentage> in one definition
Browse files Browse the repository at this point in the history
Instead of having a separate definition for `<length>` and `<percentage>`.

Fixes #9469
  • Loading branch information
nt1m authored Aug 6, 2024
1 parent cd55aea commit ec444e7
Showing 1 changed file with 11 additions and 16 deletions.
27 changes: 11 additions & 16 deletions css-text-decor-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -351,23 +351,20 @@ Text Decoration Line Thickness: the 'text-decoration-thickness' property</h3>
use that width,
otherwise behaves as ''text-decoration-thickness/auto''.

<dt><dfn><<length>></dfn>
<dt><dfn><<length-percentage>></dfn>
<dd>
Specifies the thickness of text decoration lines as a fixed length.
The UA should round the actual value to the nearest integer device pixel,
and ensure it is at least one device pixel.

A length value specifies the thickness of text decoration lines as a fixed length.

Note: A length will inherit as a fixed value,
and will not scale with the font.

<dt><dfn><<percentage>></dfn>
<dd>
<p>Specifies the thickness of text decoration lines as a percentage of ''1em''.
The UA should round the actual value to the nearest integer device pixel,
and ensure it is at least one device pixel.
A percentage value specifies the thickness of text decoration lines as a percentage of ''1em''.

Note: A percentage will inherit as a relative value,
and will therefore scale with changes in the font as it inherits.

The UA should round the actual value to the nearest integer device pixel,
and ensure it is at least one device pixel.
</dl>

<h4 id="text-decoration-thickness">
Expand Down Expand Up @@ -684,16 +681,14 @@ Text Underline Offset: the 'text-underline-offset' property</h3>
and the UA was able to extract an appropriate metric to use
from the font.

<dt><dfn><<length>>
<dt><dfn><<length-percentage>></dfn>
<dd>
<p>Specifies the offset of underlines as a fixed length.
<p>A length value specifies the offset of underlines as a fixed length.

Note: A length will inherit as a fixed value,
and will not scale with the font.

<dt><dfn><<percentage>>
<dd>
<p>Specifies the offset of underlines as a percentage of ''1em''.
A percentage value specifies the offset of underlines as a percentage of ''1em''.

Note: A percentage will inherit as a relative value,
and will therefore scale with changes in the font as it inherits.
Expand Down Expand Up @@ -2210,4 +2205,4 @@ No new privacy considerations have been reported on this specification.

<h2 class=no-num id=security>Security Considerations</h2>

No new security considerations have been reported on this specification.
No new security considerations have been reported on this specification.

0 comments on commit ec444e7

Please sign in to comment.