Skip to content

Commit ffbfa06

Browse files
committed
[css-text-decor-4] text-decoration-width -> text-decoration-thickness per WG resolution in <http://lists.w3.org/Archives/Public/www-style/2018Dec/0004.html> Note some issues with it, though.
1 parent 48c1c6d commit ffbfa06

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

css-text-decor-4/Overview.bs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ Text Decoration Lines: the 'text-decoration-line' property</h3>
109109
as modifications to its default styling.
110110

111111
<h3 id="text-decoration-width-property">
112-
Text Decoration Line Thickness: the 'text-decoration-width' property</h3>
112+
Text Decoration Line Thickness: the 'text-decoration-thickness' property</h3>
113113

114114
<pre class="propdef">
115-
Name: text-decoration-width
115+
Name: text-decoration-thickenss
116116
Value: auto | from-font | <<length>>
117117
Initial: auto
118118
Applies to: all elements
@@ -127,7 +127,7 @@ Text Decoration Line Thickness: the 'text-decoration-width' property</h3>
127127

128128
Values have the following meanings:
129129

130-
<dl dfn-for=text-decoration-width dfn-type=value>
130+
<dl dfn-for=text-decoration-thickness dfn-type=value>
131131
<dt><dfn>auto</dfn>
132132
<dd>
133133
The UA chooses an appropriate thickness for text decoration lines;
@@ -138,7 +138,7 @@ Text Decoration Line Thickness: the 'text-decoration-width' property</h3>
138138
If the <a>first available font</a> has
139139
metrics indicating a preferred underline width,
140140
use that width,
141-
otherwise behaves as ''text-decoration-width/auto''.
141+
otherwise behaves as ''text-decoration-thickness/auto''.
142142

143143
<dt><dfn><<length>></dfn>
144144
<dd>
@@ -148,6 +148,12 @@ Text Decoration Line Thickness: the 'text-decoration-width' property</h3>
148148
so that the line thickness scales with the font.
149149
</dl>
150150

151+
ISSUE: While <code>text-decoration-thickness</code> seems to be more intuitive
152+
than <code>text-decoration-width</code> for English-speakers,
153+
other line-thicknesses in CSS
154+
(e.g. <code>border-width</code> and <code>column-rule-width</code>)
155+
are called “widths”.
156+
151157
<h4 id="text-decoration-thickness">
152158
Automatic Thickness of Text Decoration Lines</h4>
153159

0 commit comments

Comments
 (0)