Skip to content

Commit

Permalink
[css-text-decor-4] Add from-font keyword to text-decoration-width/tex…
Browse files Browse the repository at this point in the history
…t-underline-offset per WG resolution. Fixes w3c#2376
  • Loading branch information
fantasai authored and fergald committed May 7, 2018
1 parent 7557cb5 commit e7381cd
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions css-text-decor-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Text Decoration Line Thickness: the 'text-decoration-width' property</h3>

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

<dt><dfn>from-font</dfn>
<dd>
If the <a>first available font</a> has
metrics indicating a preferred underline width,
use that width,
otherwise behaves as ''text-decoration-width/auto''.

<dt><dfn><<length>></dfn>
<dd>
Specifies the thickness of text decoration lines as a length.
Expand Down Expand Up @@ -168,7 +175,7 @@ Text Underline Offset: the 'text-underline-offset' property</h3>

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

<dt><dfn>from-font</dfn>
<dd>
If the <a>first available font</a> has
metrics indicating a preferred underline offset,
use that offset,
otherwise behaves as ''text-underline-offset/auto''.

<dt><dfn><<length>>
<dd>
Specifies the offset of underlines as a length.
Expand Down

0 comments on commit e7381cd

Please sign in to comment.