Skip to content

Commit a32f4f1

Browse files
fantasaijihyerish
andcommitted
[css-pseudo-4] Add new pseudo-element ::search-text #10212 #10213
See #10475 Co-authored-by: Jihye Hong
1 parent a1ebde1 commit a32f4f1

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

css-pseudo-4/Overview.bs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ Styling the First-Letter Pseudo-elements
640640
Highlight Pseudo-elements
641641

642642

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
644644

645645
646646
grammar-spelling-errors-001.html
@@ -738,6 +738,16 @@ Selecting Highlighted Content: the ''::selection'', ''::target-text'', ''::spel
738738
textpath-selection-011.html
739739
740740

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+
741751
::target-text
742752
743753
The ''::target-text'' pseudo-element represents text
@@ -1210,6 +1220,9 @@ Backgrounds
12101220
over the ''::spelling-error'' overlay
12111221
which is drawn over the ''::grammar-error'' overlay
12121222
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.
12131226

12141227
12151228
selection-overlay-and-grammar-001.html

0 commit comments

Comments
 (0)