# custom highlight api

A web platform API specified by W3C for programmatically styling arbitrary document text ranges using CSS custom highlights.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Highlight search matches without touching the DOM

DevFeed: [Highlight search matches without touching the DOM](<https://devfeed.tech/articles/highlight-search-matches-without-touching-the-dom-98972.md>)

Original publisher: [Read original article](<https://markodenic.tech/highlight-search-matches-without-touching-the-dom/>)

Author: Marko

Published: 2026-10-24T13:38:02Z

Content type: tutorial

Language: en

Sources: [Marko Denic Tech](<https://devfeed.tech/sources/marko-denic-tech.md>)

Topics: [custom highlight api](<https://devfeed.tech/topics/custom-highlight-api.md>), [Front end](<https://devfeed.tech/topics/frontend.md>), [CSS](<https://devfeed.tech/topics/css.md>), [Highlight.js](<https://devfeed.tech/topics/highlightjs.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [blog-for-developers](<https://devfeed.tech/tags/blog-for-developers.md>), [build-faster](<https://devfeed.tech/tags/build-faster.md>), [code-productivity](<https://devfeed.tech/tags/code-productivity.md>), [code-smarter](<https://devfeed.tech/tags/code-smarter.md>), [content-monetization](<https://devfeed.tech/tags/content-monetization.md>), [css](<https://devfeed.tech/tags/css.md>), [css-animation](<https://devfeed.tech/tags/css-animation.md>), [css-performance](<https://devfeed.tech/tags/css-performance.md>), [custom-highlight-api](<https://devfeed.tech/tags/custom-highlight-api.md>), [developer-growth](<https://devfeed.tech/tags/developer-growth.md>), [developer-resources](<https://devfeed.tech/tags/developer-resources.md>), [email-newsletter-for-coders](<https://devfeed.tech/tags/email-newsletter-for-coders.md>), [front-end-development](<https://devfeed.tech/tags/front-end-development.md>), [github-profile-automation](<https://devfeed.tech/tags/github-profile-automation.md>), [html-tips](<https://devfeed.tech/tags/html-tips.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [javascript-tricks](<https://devfeed.tech/tags/javascript-tricks.md>), [learn-to-code](<https://devfeed.tech/tags/learn-to-code.md>), [responsive-design-tips](<https://devfeed.tech/tags/responsive-design-tips.md>), [search](<https://devfeed.tech/tags/search.md>), [ui](<https://devfeed.tech/tags/ui.md>), [web-dev-newsletter](<https://devfeed.tech/tags/web-dev-newsletter.md>), [web-development](<https://devfeed.tech/tags/web-development.md>), [web-development-tips](<https://devfeed.tech/tags/web-development-tips.md>), [weekly-dev-tips](<https://devfeed.tech/tags/weekly-dev-tips.md>), [workflow-optimization](<https://devfeed.tech/tags/workflow-optimization.md>)

### AI overview

The CSS Custom Highlight API can mark search matches without changing page elements: walk the content's text nodes, create a `Range` for each match, register them in a `Highlight` with `CSS.highlights.set`, and style the group with `::highlight(search)`. Replacing the named highlight on each input clears old matches; a second, higher-priority highlight can mark the current match and scroll it into view. The excerpt says current Chrome, Edge, Safari, and Firefox support the API, but recommends checking `CSS.highlights`; highlights are paint only, so screen readers need a separate result-count announcement. Matches spanning multiple text nodes are missed, and large pages may need debouncing.

### Source excerpt

Stop wrapping search matches in mark tags. The CSS Custom Highlight API paints every match without adding a single element to your page.

## New in Edge for developers - Create better components and make your site agent-ready

DevFeed: [New in Edge for developers - Create better components and make your site agent-ready](<https://devfeed.tech/articles/new-in-edge-for-developers-create-better-components-and-make-your-site-agent-ready-57477.md>)

Original publisher: [Read original article](<https://blogs.windows.com/msedgedev/2026/09/21/new-in-edge-for-developers-create-better-components-and-make-your-site-agent-ready/>)

Author: Patrick Brosset

Published: 2026-09-21T16:58:01Z

Content type: release

Language: en

Sources: [Microsoft Edge](<https://devfeed.tech/sources/microsoft-edge-blog.md>)

Topics: [Edge](<https://devfeed.tech/topics/edge.md>), [Web](<https://devfeed.tech/topics/web.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>), [Web Components](<https://devfeed.tech/topics/web-components.md>), [Chromium](<https://devfeed.tech/topics/chromium.md>), [aria](<https://devfeed.tech/topics/aria.md>), [custom highlight api](<https://devfeed.tech/topics/custom-highlight-api.md>), [HTML](<https://devfeed.tech/topics/html.md>), [CSS](<https://devfeed.tech/topics/css.md>), [PWA](<https://devfeed.tech/topics/pwa.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [aria](<https://devfeed.tech/tags/aria.md>), [assistive-technology](<https://devfeed.tech/tags/assistive-technology.md>), [chromium](<https://devfeed.tech/tags/chromium.md>), [components](<https://devfeed.tech/tags/components.md>), [css](<https://devfeed.tech/tags/css.md>), [edge](<https://devfeed.tech/tags/edge.md>), [html](<https://devfeed.tech/tags/html.md>), [microsoft](<https://devfeed.tech/tags/microsoft.md>), [pwa](<https://devfeed.tech/tags/pwa.md>), [uncategorized](<https://devfeed.tech/tags/uncategorized.md>), [web](<https://devfeed.tech/tags/web.md>), [web-platform](<https://devfeed.tech/tags/web-platform.md>)

### AI overview

A Microsoft Edge developer roundup covers new web platform capabilities, including the OpaqueRange API for interacting with text ranges in form inputs, Shadow DOM reference support for accessible web components, and aria-actions for exposing secondary widget actions to assistive technologies. It also mentions media-state pseudo-classes, relative alpha colors, PWA drag regions, and early WebMCP features for browsing-agent scenarios.

### Source excerpt

Welcome back to New in Edge for developers, our recurring roundup of recent web platform updates in Microsoft Edge. In this edition, we'll look more closely at some of the newest additions to Microsoft Edge and the Chromium project, such as The post New in Edge for developers - Create better components and make your site agent-ready appeared first on Microsoft Edge Blog.

## CSS Custom Highlight Api: JavaScript Implementation Notes

DevFeed: [CSS Custom Highlight Api: JavaScript Implementation Notes](<https://devfeed.tech/articles/css-custom-highlight-api-javascript-implementation-notes-50826.md>)

Original publisher: [Read original article](<https://www.sitepoint.com/css-custom-highlight-api-javascript-guide/>)

Author: SitePoint Team

Published: 2026-09-06T00:05:41Z

Content type: tutorial

Language: en

Sources: [SitePoint](<https://devfeed.tech/sources/sitepoint.md>)

Topics: [custom highlight api](<https://devfeed.tech/topics/custom-highlight-api.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [Syntax Highlighting](<https://devfeed.tech/topics/syntax-highlighting.md>), [Document Object Model (DOM)](<https://devfeed.tech/topics/dom.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>), [implementation](<https://devfeed.tech/topics/implementation.md>)

Tags: [accessibility](<https://devfeed.tech/tags/accessibility.md>), [custom-highlight-api](<https://devfeed.tech/tags/custom-highlight-api.md>), [elements](<https://devfeed.tech/tags/elements.md>), [highlighting](<https://devfeed.tech/tags/highlighting.md>), [html-css](<https://devfeed.tech/tags/html-css.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [performance](<https://devfeed.tech/tags/performance.md>), [syntax-highlighting](<https://devfeed.tech/tags/syntax-highlighting.md>), [web](<https://devfeed.tech/tags/web.md>)

### AI overview

A tutorial on building syntax highlighting with the CSS Custom Highlight API and JavaScript. It explains how to style text ranges through CSS without adding wrapper elements to the DOM, addressing performance, complexity, and accessibility concerns.

### Source excerpt

Learn how to build high-performance syntax highlighting without wrapper DOM elements using the CSS Custom Highlight API JavaScript interfaces and Range objects. Continue reading CSS Custom Highlight Api: JavaScript Implementation Notes on SitePoint.