diff --git a/css-pseudo-4/Overview.bs b/css-pseudo-4/Overview.bs
index 8fdbac47756..12fe21330dc 100644
--- a/css-pseudo-4/Overview.bs
+++ b/css-pseudo-4/Overview.bs
@@ -438,7 +438,7 @@ Styling the ''::first-letter'' Pseudo-element
Highlight Pseudo-elements
-Selecting Highlighted Content: the ''::selection'', ''::inactive-selection'', ''::spelling-error'', and ''::grammar-error'' pseudo-elements
+Selecting Highlighted Content: the ''::selection'', ''::inactive-selection'', ''::target-text'', ''::spelling-error'', and ''::grammar-error'' pseudo-elements
The highlight pseudo-elements
represent portions of a document that have been given a particular status
@@ -467,6 +467,16 @@ Selecting Highlighted Content: the ''::selection'', ''::inactive-selection'', '
whereas ''::inactive-selection'' applies to inactive selections
(e.g. when the document window is inactive and therefore not receiving events).
+ ::target-text
+
+ The ''::target-text'' pseudo-element represents text
+ directly targetted by the document URL’s [=URL/fragment=], if any.
+
+ Note: When a [=URL fragment=] targets an element,
+ the '':target'' pseudo-element can be used to select it,
+ but ''::target-text'' does not match anything.
+ It only matches text that is itself targetted by the [[=URL/fragment=]].
+
::spelling-error
The ''::spelling-error'' pseudo-element represents
@@ -547,11 +557,16 @@ Styling Highlights
Note: Historically (and at the time of writing)
only 'color' and 'background-color' have been interoperably supported.
+
+Default UA Styles
+
The following addition is made to the default UA stylesheet:
/* Represent default spelling/grammar error styling in an adjustable way */
:root::spelling-error { text-decoration-line: spelling-error; }
:root::grammar-error { text-decoration-line: grammar-error; }
+ /* Highlight targetted text */
+ :root::target-text { color: MarkText; background: Mark; }
@@ -689,6 +704,7 @@ Backgrounds
(i.e. just before step 8 in CSS2.2§E.2).
The ''::selection'' overlay is drawn
+ over the ''::target-text'' overlay which is drawn
over the ''::spelling-error'' overlay
which is drawn over the ''::grammar-error'' overlay.
@@ -1006,6 +1022,7 @@ Changes
Changes since the 25 February 2019 Working Draft include:
+ - Added ''::target-text'' pseudo-element.
- Included spaces between the first letter and its surrounding punctuation in ''::first-letter''.
(Issue 5154)
- Adjust rules for inheritance of properties from ''::first-line''