Skip to content

Commit 36d3b24

Browse files
committed
[css-pseudo-4] Move text to more appropriate section
1 parent f1cd153 commit 36d3b24

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

css-pseudo-4/Overview.bs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -479,15 +479,6 @@ Selecting Highlighted Content: the ''::selection'', ''::inactive-selection'', '
479479
do not necessarily fit into the element tree,
480480
and can arbitrarily cross element boundaries without honoring its nesting structure.
481481

482-
The following addition is made to the default UA stylesheet:
483-
<pre><code class="lang-css">
484-
/* Represent default spelling/grammar error styling in an adjustable way */
485-
:root::spelling-error { text-decoration-line: spelling-error; }
486-
:root::grammar-error { text-decoration-line: grammar-error; }
487-
/* Ensure contrast on text with shadows */
488-
:root::selection { text-shadow: none; }
489-
</code></pre>
490-
491482
Note: A future level of CSS may introduce ways to create
492483
custom highlight pseudo-elements.
493484

@@ -545,6 +536,15 @@ Styling Highlights</h3>
545536
Note: Historically (and at the time of writing)
546537
only 'color' and 'background-color' have been interoperably supported.
547538

539+
The following addition is made to the default UA stylesheet:
540+
<pre><code class="lang-css">
541+
/* Represent default spelling/grammar error styling in an adjustable way */
542+
:root::spelling-error { text-decoration-line: spelling-error; }
543+
:root::grammar-error { text-decoration-line: grammar-error; }
544+
/* Ensure contrast on text with shadows */
545+
:root::selection { text-shadow: none; }
546+
</code></pre>
547+
548548
<h3 id=highlight-bounds>
549549
Area of a Highlight</h3>
550550

0 commit comments

Comments
 (0)