Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-text-decor-4] Define <length-percentage> as a single type #10699

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.