Skip to content

Commit 5f91d2e

Browse files
committed
[css-text-decor] Move spelling-error and grammar-error to L4 where they belong. w3c#1828
1 parent c54d563 commit 5f91d2e

File tree

2 files changed

+77
-23
lines changed

2 files changed

+77
-23
lines changed

css-text-decor-3/Overview.bs

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ Abstract: This module contains the features of CSS relating to text decoration,
1717
At Risk: The 'text-decoration-skip' property.
1818
At Risk: The line positioning rules.
1919
At Risk: The ability to place both emphasis marks and ruby on the same base text.
20-
At Risk: The ''spelling-error'' and ''grammar-error'' values of the 'text-decoration-line' property.
2120
Link Defaults: css-color-3 (property) color
2221
Use <i> Autolinks: yes
2322
</pre>
@@ -226,7 +225,7 @@ Text Decoration Lines: the 'text-decoration-line' property</h3>
226225

227226
<pre class="propdef">
228227
Name: text-decoration-line
229-
Value: none | [ underline || overline || line-through || blink ] | spelling-error | grammar-error
228+
Value: none | [ underline || overline || line-through || blink ]
230229
Initial: none
231230
Inherited: no (but see prose, above)
232231
</pre>
@@ -250,32 +249,13 @@ Text Decoration Lines: the 'text-decoration-line' property</h3>
250249
Conforming user agents may simply not blink the text.
251250
Note that not blinking the text is one technique to satisfy <a href="https://www.w3.org/TR/UAAG/guidelines.html#tech-on-off-blinking-text">checkpoint 3.3 of WAI-UAAG</a>.
252251
This value is <strong>deprecated</strong> in favor of Animations [[CSS3-ANIMATIONS]].
253-
<dt><dfn value for="text-tecoration-line">spelling-error</dfn>
254-
<dd>This value indicates the type of text decoration used by the User Agent
255-
to highlight spelling mistakes.
256-
Its appearance is UA defined.
257-
<span class=note>It is often rendered as a red wavy underline.</span>
258-
<dt><dfn value for="text-decoration-line">grammar-error</dfn>
259-
<dd>This value indicates the type of text decoration used by the User Agent
260-
to highlight grammar mistakes.
261-
Its appearance is UA defined.
262-
<span class=note>It is often rendered as a green wavy underline.</span>
263252
</dl>
264253

265254
Note: In <a>vertical writing modes</a>,
266255
'text-underline-position' can cause the underline and overline to switch sides.
267256
This allows the position of underlines to key off of language-specific preferences
268257
automatically.
269258

270-
When the value of 'text-decoration-line' is either ''spelling-error'' or ''grammar-error'',
271-
the UA may disregard the values of the other <a>sub-properties</a> of 'text-decoration',
272-
as well as those of other properties affecting the appearance of the text-decoration such as 'text-underline-position'.
273-
To the extent that honoring these properties would be meaningful and practical given the UA's chosen rendering,
274-
the UA should apply them, but is not required to.
275-
276-
Note: The ''spelling-error'' and ''grammar-error'' values are at risk.
277-
278-
279259
<h3 id="text-decoration-style-property">
280260
Text Decoration Style: the 'text-decoration-style' property</h3>
281261

@@ -1099,5 +1079,4 @@ Changes</h2>
10991079
(<a href="https://drafts.csswg.org/css-text-decor-3/issues-cr-2013#issue-11">Issue 11</a>, <a href="https://drafts.csswg.org/css-text-decor-3/issues-cr-2013#issue-18">Issue 18</a>, <a href="https://drafts.csswg.org/css-text-decor-3/issues-cr-2013#issue-19">Issue 19</a>, <a href="https://drafts.csswg.org/css-text-decor-3/issues-cr-2013#issue-36">Issue 36</a>)
11001080
<li>Added rule to apply ''font-variant-east-asian/ruby'' to emphasis marks' font.
11011081
(<a href="https://drafts.csswg.org/css-text-decor-3/issues-cr-2013#issue-13">Issue 13</a>)
1102-
<li>Added the ''spelling-error'' and ''grammar-error'' values to 'text-decoration' (marked at risk).
11031082
</ul>

css-text-decor-4/Overview.bs

Lines changed: 76 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Title: CSS Text Decoration Module Level 4
33
Shortname: css-text-decor
44
Level: 4
5-
Status: FPWD
5+
Status: ED
66
Date: 2018-03-13
77
Prepare for TR: true
88
Work Status: Exploring
@@ -30,6 +30,81 @@ spec:css-text-3; type:dfn; text:character
3030
<h2 id="line-decoration">
3131
Additional Controls for Line Decorations</h2>
3232

33+
<h3 id="text-decoration-line-property">
34+
Text Decoration Lines: the 'text-decoration-line' property</h3>
35+
36+
<pre class="propdef">
37+
Name: text-decoration-line
38+
Value: none | [ underline || overline || line-through || blink ] | spelling-error | grammar-error
39+
Initial: none
40+
Inherited: no (but see prose, above)
41+
</pre>
42+
43+
Specifies what line decorations, if any, are added to the element.
44+
Values have the following meanings:</p>
45+
46+
<dl>
47+
<dt><dfn value for="text-decoration-line">none</dfn>
48+
<dd>
49+
Neither produces nor inhibits text decoration.
50+
51+
<dt><dfn value for="text-decoration-line">underline</dfn>
52+
<dd>
53+
Each line of text is underlined.
54+
55+
<dt><dfn value for="text-decoration-line">overline</dfn>
56+
<dd>
57+
Each line of text has a line over it
58+
(i.e. on the opposite side from an underline).
59+
60+
<dt><dfn value for="text-decoration-line">line-through</dfn>
61+
<dd>
62+
Each line of text has a line through the middle.
63+
64+
<dt><dfn value for="text-decoration-line">blink</dfn>
65+
<dd>
66+
The text blinks (alternates between visible and invisible).
67+
Conforming user agents may simply not blink the text.
68+
Note that not blinking the text is one technique to satisfy
69+
<a href="https://www.w3.org/TR/UAAG/guidelines.html#tech-on-off-blinking-text">checkpoint 3.3 of WAI-UAAG</a>.
70+
This value is <strong>deprecated</strong>
71+
in favor of Animations [[CSS3-ANIMATIONS]].
72+
73+
<dt><dfn value for="text-tecoration-line">spelling-error</dfn>
74+
<dd>
75+
This value indicates the type of text decoration
76+
used by the User Agent to highlight spelling mistakes.
77+
Its appearance is UA-defined,
78+
and may be platform-dependent.
79+
<span class=note>It is often rendered as a red wavy underline.</span>
80+
81+
<dt><dfn value for="text-decoration-line">grammar-error</dfn>
82+
<dd>
83+
This value indicates the type of text decoration
84+
used by the User Agent to highlight grammar mistakes.
85+
Its appearance is UA defined,
86+
and may be platform-dependent.
87+
<span class=note>It is often rendered as a green wavy underline.</span>
88+
</dl>
89+
90+
Note: In <a>vertical writing modes</a>,
91+
'text-underline-position' can cause the underline and overline to switch sides.
92+
This allows the position of underlines to key off of language-specific preferences
93+
automatically.
94+
95+
Since ''spelling-error'' and ''grammar-error'' decorations are entirely UA-defined,
96+
the UA <em>may</em> disregard
97+
the other <a>sub-properties</a> of 'text-decoration',
98+
as well any other properties typically affecting the appearance of line decorations
99+
(such as 'text-underline-position', 'color', 'stroke', or 'fill')
100+
when rendering these decorations.
101+
However,
102+
to the extent that honoring any of these properties
103+
would be meaningful and practical
104+
given the UA's chosen rendering,
105+
the UA <em>should</em> apply them
106+
as modifications to its default styling.
107+
33108
<h3 id="text-decoration-width-property">
34109
Text Decoration Line Thickness: the 'text-decoration-width' property</h3>
35110

0 commit comments

Comments
 (0)