Conversation
|
Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs). |
|
I'm wondering if we need to add an entry here in order for the collector to test this. @Elchi3 Do you know more? PS: The collecto has a test for |
It turns out there is a collector test for
Either the feature isn't actually available in Chrome 144, or it is finched, or the collector test is insufficient. In Chrome 144:
|
FYI, I've tested it on the latest Chrome release version (which is up to 144), and it works there. See https://pr42870.review.mdn.allizom.net/en-US/docs/Web/CSS/Reference/Selectors/::search-text#custom_styles_for_text_search_results (it should be live on MDN soon, as we just merged the associated content PR.) |

Summary
Chrome 144 supports the
::search-textpseudo-element, which allows custom styling to be applied to browser search results; see https://chromestatus.com/feature/5195073796177920.We already have BCD for
::search-text, however, you can combine::search-textwith the:currentpseudo-class to style the currently-highlighted search term on the page. This currently doesn't have any BCD, so I am using this PR to add:currentBCD.I'm assuming it makes sense to put Chrome 144 down for this as well, as previously, there was no context in which
:currentwas supported. However, you might have other opinions on this.I also thought about putting
"partial_implementation": "true"for this, but then again,:currentis fully supported in the context it is supported in. It just isn't supported in other contexts.Test results and supporting details
Related issues