Skip to content

Files

custom-highlight-api

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Aug 25, 2022
Sep 19, 2023
Jan 20, 2022

Custom Highlight API demo

➡️ Open the demo ⬅️

The Custom Highlight API provides a programmatic way of adding and removing highlights that do not affect the underlying DOM structure, but instead applies styles to text based on range objects, accessed via the ::highlight() pseudo element.