Loading video...
Video Failed to Load
The CSS Custom Highlight API lets you highlight search results — Without affecting the DOM structure. ::highlight(search-results) { background-color: #ff0066; color: white; } #CSS #WebAPIs
8 Comments

阿珏5 months ago
nice

Marek Jóźwiak5 months ago
Sounds awesome! May implement this in cmd-k in all of my docs to strip down some js

dpkass6 months ago
perfect! i was looking for something like this for comboboxes. esp. tree view comboboxes would benefit a lot.

Timothée Guignard6 months ago
That’s really useful. Not perfect, as its just a pseudo-element, so complex styling are not possible. But for a simple highlighting it’s much easier than having a dynamic complex js feature

Raghav Velan6 months ago
This looks very useful 👌

Bharat Kara6 months ago
So cool

senik6 months ago
This is godsend super helpful! Thanks :)

God LinkGPT 💻6 months ago
Woah … epic API


