css
Zero Extra Nodes: The CSS Highlight API That Styles Any Text Range
Highlight arbitrary text ranges without touching the DOM: the CSS Custom Highlight API lets JavaScript build the ranges and CSS paint them. What to know before shipping it, from the styling whitelist to the StaticRange performance trap.