Loading video...

Video Failed to Load

Go Home

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

44,660 views • 6 months ago •via X (Twitter)

8 Comments

阿珏's profile picture
阿珏5 months ago

nice

Marek Jóźwiak's profile picture
Marek Jóźwiak5 months ago

Sounds awesome! May implement this in cmd-k in all of my docs to strip down some js

dpkass's profile picture
dpkass6 months ago

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

Timothée Guignard's profile picture
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 Velan's profile picture
Raghav Velan6 months ago

This looks very useful 👌

Bharat Kara's profile picture
Bharat Kara6 months ago

So cool

senik's profile picture
senik6 months ago

This is godsend super helpful! Thanks :)

God LinkGPT 💻's profile picture
God LinkGPT 💻6 months ago

Woah … epic API

Related Videos