Video wird geladen...
Video konnte nicht geladen werden
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,719 Aufrufe • vor 7 Monaten •via X (Twitter)
8 Kommentare

阿珏vor 7 Monaten
nice

Marek Jóźwiakvor 7 Monaten
Sounds awesome! May implement this in cmd-k in all of my docs to strip down some js

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

Timothée Guignardvor 7 Monaten
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 Velanvor 7 Monaten
This looks very useful 👌

Bharat Karavor 7 Monaten
So cool

senikvor 7 Monaten
This is godsend super helpful! Thanks :)

God LinkGPT 💻vor 7 Monaten
Woah … epic API

