Skip to content

Commit f3b9077

Browse files
committed
[css-pseudo-4] Allow ::search-text:current #10298
1 parent 0bc4277 commit f3b9077

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

css-pseudo-4/Overview.bs

+11-3
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,13 @@ Selecting Highlighted Content: the ''::selection'', ''::search-text'', ''::targe
756756
expressible with the [=highlight pseudo-elements=],
757757
this pseudo-element is optional to implement.
758758

759-
Issue(10527): How to identify the current match?
759+
The '':current'' [=pseudo-class=] (but not ''::current()'')
760+
may be combined with ''::search-text''
761+
to represent the currently focused match instance.
762+
The '':past'' and '':future'' [=pseudo-classes=] are reserved
763+
for analogous use in the future.
764+
Any unsupported combination of these pseudo-classes with ''::search-text''
765+
<em>must</em> be treated as invalid.
760766

761767
<dt><dfn>::target-text</dfn>
762768
<dd>
@@ -1880,9 +1886,11 @@ Changes</h2>
18801886
<a href="https://github.com/w3c/csswg-drafts/issues/11317">11317</a>)
18811887
<li>Defined ''::highlight()'' and improved cross-referencing to [[CSS-HIGHLIGHT-API-1]].
18821888
(Issue <a href="https://github.com/w3c/csswg-drafts/issues/6755">6755</a>)
1883-
<li>Added ''::search-text'' as a new [=highlight pseudo-element=].
1889+
<li>Added ''::search-text'' as a new [=highlight pseudo-element=],
1890+
and allowed it to combine with '':current''.
18841891
(Issues <a href="https://github.com/w3c/csswg-drafts/issues/10212">10212</a>
1885-
and <a href="https://github.com/w3c/csswg-drafts/issues/10213">10213</a>)
1892+
<a href="https://github.com/w3c/csswg-drafts/issues/10213">10213</a>,
1893+
and <a href="https://github.com/w3c/csswg-drafts/issues/10298">10298</a>)
18861894
<li>Added ''::details-content'' pseudo-element
18871895
(<a href="https://github.com/w3c/csswg-drafts/pull/10379">Issue 10379</a>)
18881896
<li>Allow space and no-break space to be part of ''::first-letter''

0 commit comments

Comments
 (0)