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 <jihye@igalia.com>
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

+14-1
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ Styling the First-Letter Pseudo-elements</h4>
640640
Highlight Pseudo-elements</h2>
641641

642642
<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>
644644

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

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+
741751
<dt><dfn>::target-text</dfn>
742752
<dd>
743753
The ''::target-text'' pseudo-element represents text
@@ -1210,6 +1220,9 @@ Backgrounds</h4>
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
<wpt>
12151228
selection-overlay-and-grammar-001.html

0 commit comments

Comments
 (0)