Skip to main content

Harshal V. LADHE

CSS Custom Highlight API

Painting text ranges with `Highlight`, `CSS.highlights` and the `::highlight()` pseudo-element, without changing the DOM.

Content tagged custom-highlight-api

  • Tutorial:CSS Custom Highlight API: ::highlight() for Search Results

    Highlight search matches with CSS without touching the DOM.
    Highlight search results with the CSS Custom Highlight API: ::highlight(), CSS.highlights, StaticRange, priority, accessibility and a mark fallback.
    Published at:
    Categories:CSS
    Estimated reading time:14 min read