@@ -640,7 +640,7 @@ Styling the First-Letter Pseudo-elements
640
640
Highlight Pseudo-elements
641
641
642
642
643
- Selecting Highlighted Content: the ''::selection'', ''::target-text'', ''::spelling-error'', ''::grammar-error'', and ''::highlight()'' pseudo-elements
643
+ Selecting Highlighted Content: the ''::selection'', ''::search-text'', ''::target-text'', ''::spelling-error'', ''::grammar-error'', and ''::highlight()'' pseudo-elements
644
644
645
645
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
740
740
741
+ ::search-text
742
+
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
::target-text
742
752
743
753
The ''::target-text'' pseudo-element represents text
@@ -1210,6 +1220,9 @@ Backgrounds
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
1215
1228
selection-overlay-and-grammar-001.html
0 commit comments