8000 [css-text-decor-4] Add from-font keyword to text-decoration-width/tex… · w3c/csswg-drafts@d1e11d5 · GitHub
Skip to content

Commit d1e11d5

Browse files
committed
[css-text-decor-4] Add from-font keyword to text-decoration-width/text-underline-offset per WG resolution. Fixes #2376
1 parent bbc1a58 commit d1e11d5

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

css-text-decor-4/Overview.bs

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Text Decoration Line Thickness: the 'text-decoration-width' property</h3>
3535

3636
<pre class="propdef">
3737
Name: text-decoration-width
38-
Value: auto | <<length>>
38+
Value: auto | from-font | <<length>>
3939
Initial: auto
4040
Applies to: all elements
4141
Inherited: no
@@ -56,6 +56,13 @@ Text Decoration Line Thickness: the 'text-decoration-width' property</h3>
5656
The UA chooses an appropriate thickness for text decoration lines;
5757
see below.
5858

59+
<dt><dfn>from-font</dfn>
60+
<dd>
61+
If the <a>first available font</a> has
62+
metrics indicating a preferred underline width,
63+
use that width,
64+
otherwise behaves as ''text-decoration-width/auto''.
65+
5966
<dt><dfn><<length>></dfn>
6067
<dd>
6168
Specifies the thickness of text decoration lines as a length.
@@ -168,7 +175,7 @@ Text Underline Offset: the 'text-underline-offset' property</h3>
168175

169176
<pre class="propdef">
170177
Name: text-underline-offset
171-
Value: auto | <<length>>
178+
Value: auto | from-font | <<length>>
172179
Initial: auto
173180
Applies to: all elements
174181
Inherited: yes
@@ -188,6 +195,13 @@ Text Underline Offset: the 'text-underline-offset' property</h3>
188195
<dd>
189196
The UA chooses an appropriate offset for underlines.
190197

198+
<dt><dfn>from-font</dfn>
199+
<dd>
200+
If the <a>first available font</a> has
201+
metrics indicating a preferred underline offset,
202+
use that offset,
203+
otherwise behaves as ''text-underline-offset/auto''.
204+
191205
<dt><dfn><<length>>
192206
<dd>
193207
Specifies the offset of underlines as a length.

0 commit comments

Comments
 (0)