Skip to content

Files

Latest commit

 

History

History
5 lines (3 loc) · 415 Bytes

README.md

File metadata and controls

5 lines (3 loc) · 415 Bytes

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.