Loading video player...
Welcome to my channel! I share daily CSS magic, Vue 3 tips, and aesthetic coding sessions. Subscribe to level up your frontend skills! Get demo source here: https://github.com/HealerNguyen/code-shorts/tree/main/tips/js-pro-15-css-custom-highlight-api he CSS Custom Highlight API lets you highlight arbitrary text ranges in the DOM without wrapping them in extra elements. Combine Range, Highlight, and CSS.highlights.set() with the ::highlight() pseudo-element.