@@ -424,17 +424,23 @@ Highlight Pseudo-elements</h2>
424
424
Selecting Highlighted Content: the ''::selection'', ''::inactive-selection'', ''::spelling-error'', and ''::grammar-error'' pseudo-elements</h3>
425
425
426
426
The <dfn export lt="highlight pseudo-element">highlight pseudo-elements</dfn>
427
- represent portions of a document that have been highlighted in some way.
428
- They do not necessarily fit into the element tree,
429
- and can arbitrarily cross element boundaries without honoring its nesting structure.
427
+ represent portions of a document that have been given a particular status
428
+ and are typically styled differently to indicate that status to the user.
429
+ For example,
430
+ selected portions of the document are typically highlighted
431
+ (given alternate background and foreground colors, or a color wash)
432
+ to indicate their selected status.
433
+ The following <a>highlight pseudo-elements</a> are defined:
430
434
431
435
<dl export>
432
436
<dt> <dfn>::selection</dfn>
433
437
<dt> <dfn>::inactive-selection</dfn>
434
438
<dd>
435
439
The ''::selection'' and ''::inactive-selection'' pseudo-elements represent
436
- the portion of a document that has been highlighted by the user.
437
- This also applies, for example, to selected text within an editable text field.
440
+ the portion of a document that has been selected
441
+ as the target or object of some possible future user-agent operation(s).
442
+ They apply, for example, to selected text within an editable text field,
443
+ which would be copied by a copy operation or replaced by a paste operation.
438
444
439
445
''::selection'' applies to active selections,
440
446
whereas ''::inactive-selection'' applies to inactive selections
@@ -451,6 +457,9 @@ Selecting Highlighted Content: the ''::selection'', ''::inactive-selection'', '
451
457
a portion of text that has been flagged by the user agent as grammatically incorrect.
452
458
</dl>
453
459
460
+ The <a>highlight pseudo-elements</a>
461
+ do not necessarily fit into the element tree,
462
+ and can arbitrarily cross element boundaries without honoring its nesting structure.
454
463
455
464
The following addition is made to the default UA stylesheet:
456
465
<pre><code class="lang-css">
0 commit comments