Chrome 144 introduced the ::search-text pseudo-element for styling find-in-page text matches. This guide covers all highlight-related pseudo-elements (::search-text, ::target-text, ::selection, ::highlight(), ::spelling-error, ::grammar-error) and demonstrates how to style them accessibly using relative color syntax to invert

6m read timeFrom css-tricks.com
Post cover image
Table of contents
The different types of highlight pseudo-elementsWhat should highlight pseudo-elements look like?
1 Comment

Sort: