← Back to release summary

CSS find-in-page highlight pseudos

Category
CSS
Type
New or changed feature
Status
In developer trial (Behind a flag) (Chrome 144)
Intent stage
None

Summary

This feature exposes **find-in-page** search result styling to authors as a highlight pseudo-element, like selection and spelling errors. This allows authors to change the foreground and background colors or add text decorations, which can be especially useful if the browser defaults have insufficient contrast with the page colors or are otherwise unsuitable.

Motivation

Authors would like to customize the highlighted text from find-in-page to have a style consistent with that of the rest of the page. In particular, the existing find-in-page highlights may offer poor contrast, harming accessibility.

Standards & signals

Docs: https://github.com/Igalia/explainers/blob/main/css/find-in-page/README.md

Explainers: https://github.com/Igalia/explainers/blob/main/css/find-in-page/README.md

View on chromestatus.com