@@ -640,7 +640,7 @@ Styling the First-Letter Pseudo-elements</h4>
640
640
Highlight Pseudo-elements</h2>
641
641
642
642
<h3 id="highlight-selectors">
643
- Selecting Highlighted Content: the ''::selection'', ''::target-text'', ''::spelling-error'', ''::grammar-error'', and ''::highlight()'' pseudo-elements</h3>
643
+ Selecting Highlighted Content: the ''::selection'', ''::search-text'', ''::target-text'', ''::spelling-error'', ''::grammar-error'', and ''::highlight()'' pseudo-elements</h3>
644
644
645
645
<wpt>
646
646
grammar-spelling-errors-001.html
@@ -738,6 +738,16 @@ Selecting Highlighted Content: the ''::selection'', ''::target-text'', ''::spel
738
738
textpath-selection-011.html
739
739
</wpt>
740
740
741
+ <dt> <dfn>::search-text</dfn>
742
+ <dd>
743
+ The ''::search-text'' pseudo-element represents text
744
+ identified by the user agent’s find-in-page feature.
745
+ Since not all UAs style matched text in ways
746
+ expressible with the [=highlight pseudo-elements=] ,
747
+ this pseudo-element is optional to implement.
748
+
749
+ Issue(10527): How to identify the current match?
750
+
741
751
<dt> <dfn>::target-text</dfn>
742
752
<dd>
743
753
The ''::target-text'' pseudo-element represents text
@@ -1210,6 +1220,9 @@ Backgrounds</h4>
1210
1220
over the ''::spelling-error'' overlay
1211
1221
which is drawn over the ''::grammar-error'' overlay
1212
1222
which is drawn over the ''::highlight'' overlays.
1223
+ The ''::search-text'' overlay is drawn directly over or below
1224
+ the '':selection'' overlay depending on the UA,
1225
+ and drawn over all other overlays.
1213
1226
1214
1227
<wpt>
1215
1228
selection-overlay-and-grammar-001.html
0 commit comments