Basic use
example.css
::highlight(search-results) {
background: #fef08a;
}
The custom highlight API styles Range-based highlights through ::highlight() without changing the DOM.
::highlight(search-results) {
background: #fef08a;
}::highlight(search-results) {
background: #fef08a;
}::highlight(search-results) {
background: #fef08a;
}Keep learning CSS.
CODETOFUN NEWS
Get the latest IT news, programming updates, and technology trends directly on your phone.
Your daily dose of tech, straight to your feed.
2 people found this page helpful