Document the ::search-text pseudo - #42870
Conversation
|
Preview URLs (4 pages)
(comment last updated: 2026-02-03 12:24:14) |
schenney-chromium
left a comment
There was a problem hiding this comment.
Thanks again for getting this done.
|
Thanks for the review, @schenney-chromium. Let me know if you spot anything else that needs attention, or give me an "LGTM" if it is ready for the editorial review stage. |
There was a problem hiding this comment.
I can't find the spec for :current. I found it in a previous selectors working draft https://www.w3.org/TR/2022/WD-selectors-4-20220507/#time-pseudos and found :past and :future in https://w3c.github.io/webvtt/#the-past-and-future-pseudo-classes and, but not :current, so i couldn't provide feedback for the :current page.
schenney-chromium
left a comment
There was a problem hiding this comment.
LGTM for technical content, with one editorial nit. Thanks again.
…xt/index.md Co-authored-by: Estelle Weyl <estelle@openwebdocs.org>
Co-authored-by: Estelle Weyl <estelle@openwebdocs.org>
estelle
left a comment
There was a problem hiding this comment.
The full example should be on the :current page. To avoid duplicating the example, we can out a basic use on the :search-text page if you want (basically, i think the current part needs to be on the current page more than on the search text page).
estelle
left a comment
There was a problem hiding this comment.
Suggesting adding "no support" feature via css and adding "tortor" to the list of words to seek under current because the text includes "tortor tortor". Approving b/c the PR works without these changes ;)
Co-authored-by: Estelle Weyl <estelle@openwebdocs.org>
…xt/index.md Co-authored-by: Estelle Weyl <estelle@openwebdocs.org>
Co-authored-by: Estelle Weyl <estelle@openwebdocs.org>
Thanks, @estelle, this works nicely. I just pushed a couple more changes to make the "not supported" banner look a bit nicer. |
* Document the ::search-text pseudo * Fixes for schenney review comments * Update files/en-us/web/css/reference/selectors/_doublecolon_search-text/index.md Co-authored-by: Estelle Weyl <estelle@openwebdocs.org> * Update files/en-us/web/css/reference/selectors/pseudo-elements/index.md Co-authored-by: Estelle Weyl <estelle@openwebdocs.org> * Fixes for estelle review comments * Fixes for estelle comments * Update files/en-us/web/css/reference/selectors/_colon_current/index.md Co-authored-by: Estelle Weyl <estelle@openwebdocs.org> * Update files/en-us/web/css/reference/selectors/_doublecolon_search-text/index.md Co-authored-by: Estelle Weyl <estelle@openwebdocs.org> * Update files/en-us/web/css/reference/selectors/_colon_current/index.md Co-authored-by: Estelle Weyl <estelle@openwebdocs.org> * Improve not supported styling, duplicate text change * fix typo --------- Co-authored-by: Estelle Weyl <estelle@openwebdocs.org>
Description
Chrome 144 adds support for the
::search-textpseudo-element; see https://chromestatus.com/feature/5195073796177920.This PR provides documentation for the new feature.
Motivation
Additional details
Related issues and pull requests