Skip to content

Commit 378a312

Browse files
frivoalFremyCompany
authored andcommitted
[css-pseudo-4] Add UA stylesheet for spelling and grammar errors
This (together with the 2 previous commits) solves w3c#1828
1 parent 91e6c14 commit 378a312

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

css-pseudo-4/Overview.bs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,13 @@ Selecting Highlighted Content: the ''::selection'', ''::inactive-selection'', '
450450
a portion of text that has been flagged by the user agent as grammatically incorrect.
451451
</dl>
452452

453+
454+
The following addition is made to the default UA stylesheet:
455+
<pre><code class="lang-css">
456+
::spelling-error { text-decoration-line: spelling-error; }
457+
::grammar-error { text-decoration-line: grammar-error; }
458+
</code></pre>
459+
453460
Note: A future level of CSS may introduce ways to create
454461
custom highlight pseudo-elements.
455462

@@ -915,6 +922,7 @@ Changes</h2>
915922
<li>Defined handling of text decorations on ''::selection'' to match IE's more sensible behavior.
916923
<li>Links to pseudo-element OM design discussions.
917924
<li>Various minor clarifications.
925+
<li>Use ''spelling-error'' and ''grammar-error'' with ''::spelling-error'' and ''::grammar-error'' in the UA stylesheet.
918926
</ul>
919927

920928
<h2 class="no-num" id="acknowledgements">

0 commit comments

Comments
 (0)