Skip to content

Commit d995663

Browse files
frivoalFremyCompany
authored andcommitted
[css-text-decor-3] Add the spelling-error and grammar-error decorations
1 parent 7fc1ba8 commit d995663

1 file changed

Lines changed: 22 additions & 1 deletion

File tree

css-text-decor-3/Overview.bs

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Abstract: This module contains the features of CSS relating to text decoration,
1818
At Risk: The 'text-decoration-skip' property.
1919
At Risk: The line positioning rules.
2020
At Risk: The ability to place both emphasis marks and ruby on the same base text.
21+
At Risk: The ''spelling-error'' and ''grammar-error'' values of the 'text-decoration-line' property.
2122
Link Defaults: css-color-3 (property) color
2223
Use <i> Autolinks: yes
2324
</pre>
@@ -179,7 +180,7 @@ Text Decoration Lines: the 'text-decoration-line' property</h3>
179180

180181
<pre class="propdef">
181182
Name: text-decoration-line
182-
Value: none | [ underline || overline || line-through || blink ]
183+
Value: none | [ underline || overline || line-through || blink ] | spelling-error | grammar-error
183184
Initial: none
184185
Inherited: no (but see prose, above)
185186
</pre>
@@ -203,8 +204,27 @@ Text Decoration Lines: the 'text-decoration-line' property</h3>
203204
Conforming user agents may simply not blink the text.
204205
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>.
205206
This value is <strong>deprecated</strong> in favor of Animations [[CSS3-ANIMATIONS]].
207+
<dt><dfn value for="text-tecoration-line">spelling-error</dfn>
208+
<dd>This values indicates the type of text decoration used by the User Agent
209+
to highlight spelling mistakes.
210+
It's appearance is UA defined.
211+
<span class=note>It is often rendered as a red wavy underline.</span>
212+
<dt><dfn value for="text-decoration-line">grammar-error</dfn>
213+
<dd>This values indicates the type of text decoration used by the User Agent
214+
to highlight grammar mistakes.
215+
It's appearance is UA defined.
216+
<span class=note>It is often rendered as a green wavy underline.</span>
206217
</dl>
207218

219+
When the value of 'text-decoration-line' is either ''spelling-error'' or ''grammar-error'',
220+
the UA may disregard the values of the other <a>sub-properties</a> of 'text-decoration',
221+
as well as those of other properties affecting the appearance of the text-decoration such as 'text-underline-position'.
222+
To the extent that honoring these properties would be meaningful and practical given the UA's chosen rendering,
223+
the UA should apply them, but is not required to.
224+
225+
Note: The ''spelling-error'' and ''grammar-error'' values are at risk.
226+
227+
208228
<h3 id="text-decoration-color-property">
209229
Text Decoration Color: the 'text-decoration-color' property</h3>
210230

@@ -974,4 +994,5 @@ Changes</h2>
974994
(<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>)
975995
<li>Added rule to apply ''font-variant-east-asian/ruby'' to emphasis marks' font.
976996
(<a href="https://drafts.csswg.org/css-text-decor-3/issues-cr-2013#issue-13">Issue 13</a>)
997+
<li>Added the ''spelling-error'' and ''grammar-error' values to 'text-decoration' (marked at risk).
977998
</ul>

0 commit comments

Comments
 (0)