Skip to content

Commit 154d46c

Browse files
committed
[css-pseudo-4] Define selection more generically, shift some text around. #3425
1 parent adf4294 commit 154d46c

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

css-pseudo-4/Overview.bs

+14-5
Original file line numberDiff line numberDiff line change
@@ -424,17 +424,23 @@ Highlight Pseudo-elements</h2>
424424
Selecting Highlighted Content: the ''::selection'', ''::inactive-selection'', ''::spelling-error'', and ''::grammar-error'' pseudo-elements</h3>
425425

426426
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:
430434

431435
<dl export>
432436
<dt><dfn>::selection</dfn>
433437
<dt><dfn>::inactive-selection</dfn>
434438
<dd>
435439
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.
438444

439445
''::selection'' applies to active selections,
440446
whereas ''::inactive-selection'' applies to inactive selections
@@ -451,6 +457,9 @@ Selecting Highlighted Content: the ''::selection'', ''::inactive-selection'', '
451457
a portion of text that has been flagged by the user agent as grammatically incorrect.
452458
</dl>
453459

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.
454463

455464
The following addition is made to the default UA stylesheet:
456465
<pre><code class="lang-css">

0 commit comments

Comments
 (0)