Skip to content

Commit 748e095

Browse files
tcaptan-crfantasai
authored andcommitted
Clarified constraints for text-decoration-thickness length and percentage
The current sentence could be interpreted as performing a `floor` on the actual calculated value, while it is actually rounded to the nearest integer, with a minimum value of one. Equivalent to: `x = min(1, round(x))`
1 parent 98dc516 commit 748e095

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

css-text-decor-4/Overview.bs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,15 +339,17 @@ Text Decoration Line Thickness: the 'text-decoration-thickness' property</h3>
339339
<dt><dfn><<length>></dfn>
340340
<dd>
341341
Specifies the thickness of text decoration lines as a fixed length.
342-
The UA must floor the actual value at one device pixel.
342+
The UA should round the actual value to the nearest integer,
343+
and ensure it is at least one device pixel.
343344

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

347348
<dt><dfn><<percentage>></dfn>
348349
<dd>
349350
<p>Specifies the thickness of text decoration lines as a percentage of ''1em''.
350-
The UA must floor the actual value at one device pixel.
351+
The UA should round the actual value to the nearest integer,
352+
and ensure it is at least one device pixel.
351353

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

0 commit comments

Comments
 (0)