Skip to content

Commit 2d923a4

Browse files
authored
[css-text-decor-4] Updated the value for text-decoration-inset (#14269)
The value is now: `<length-percentage>{1,2} | auto` As discussed in [Issue #https://github.com/w3c/csswg-drafts/issues/8403](https://github.com/w3c/csswg-drafts/issues/8403) And Firefox [Issue ](https://bugzilla.mozilla.org/show_bug.cgi?id=2044602#c1)
1 parent 06cc464 commit 2d923a4

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

css-text-decor-4/Overview.bs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ Trimming, Expanding, and Shifting Text Decoration Lines: the 'text-decoration-in
867867

868868
<pre class="propdef">
869869
Name: text-decoration-inset
870-
Value: <<length>>{1,2} | auto
870+
Value: <<length-percentage>>{1,2} | auto
871871
Initial: 0
872872
Applies to: all elements
873873
Inherited: no
@@ -887,12 +887,18 @@ Trimming, Expanding, and Shifting Text Decoration Lines: the 'text-decoration-in
887887
Values have the following meanings:
888888

889889
<dl dfn-type=value dfn-for=text-decoration-inset>
890-
<dt><dfn><<length>></dfn></dt>
890+
<dt><dfn><<length-percentage>></dfn></dt>
891891
<dd>
892892
Adjusts the start or end endpoint of the affected line decorations.
893893
Positive values move the endpoint inward (trimming),
894894
negative values move it outward (extending).
895895

896+
A percentage value specifies the size of the inset as a percentage of
897+
the used 'font-size'.
898+
899+
Note: A percentage will inherit as a relative value,
900+
and will therefore scale with changes in the font as it inherits.
901+
896902
<div class="example">
897903
<p>The following example offsets an extra thick underline
898904
1em endwards with respect to the text

0 commit comments

Comments
 (0)