Skip to content

Commit bb4f7d1

Browse files
nt1mfantasai
authored andcommitted
[css-text-decor-4] Define <length-percentage> in one definition
Instead of having a separate definition for `<length>` and `<percentage>`. Fixes w3c#9469
1 parent 7a67555 commit bb4f7d1

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

css-text-decor-4/Overview.bs

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -351,23 +351,20 @@ Text Decoration Line Thickness: the 'text-decoration-thickness' property</h3>
351351
use that width,
352352
otherwise behaves as ''text-decoration-thickness/auto''.
353353

354-
<dt><dfn><<length>></dfn>
354+
<dt><dfn><<length-percentage>></dfn>
355355
<dd>
356-
Specifies the thickness of text decoration lines as a fixed length.
357-
The UA should round the actual value to the nearest integer device pixel,
358-
and ensure it is at least one device pixel.
359-
356+
A length value specifies the thickness of text decoration lines as a fixed length.
357+
360358
Note: A length will inherit as a fixed value,
361359
and will not scale with the font.
362360

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

369363
Note: A percentage will inherit as a relative value,
370364
and will therefore scale with changes in the font as it inherits.
365+
366+
The UA should round the actual value to the nearest integer device pixel,
367+
and ensure it is at least one device pixel.
371368
</dl>
372369

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

687-
<dt><dfn><<length>>
684+
<dt><dfn><<length-percentage>></dfn>
688685
<dd>
689-
<p>Specifies the offset of underlines as a fixed length.
686+
<p>A length value specifies the offset of underlines as a fixed length.
690687

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

694-
<dt><dfn><<percentage>>
695-
<dd>
696-
<p>Specifies the offset of underlines as a percentage of ''1em''.
691+
A percentage value specifies the offset of underlines as a percentage of ''1em''.
697692

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

0 commit comments

Comments
 (0)