Skip to content
Back to feed

December 4, 2026 · Cloudflare

Browser Run - Kitesurf adds WebMCP updates, custom elements, and rendering improvements

What changed

Browser Run Kitesurf engine: Adds WebMCP spec updates, custom element upgrades, rendering fixes and lower memory use.

Kitesurf, Cloudflare's experimental browser engine for AI agents, has new features and fixes in Browser Run since it became open source.

WebMCP updates

WebMCP support now follows the latest version of the spec:

  • Tool events, such as toolactivated and toolcancel, fire on document.modelContext.
  • Pages can call document.modelContext.waitForToolsUntil() to say that they are still registering tools.
  • CDP clients receive each tool's consequential and debugging hints.

Custom elements

Custom elements now upgrade as the HTML spec defines. customElements.define() and customElements.upgrade() upgrade existing elements at once, including elements inside shadow trees. More pages built with web components now render and behave correctly.

Rendering improvements

  • Kitesurf now draws CSS filter and backdrop-filter, background-clip: text, -webkit-text-fill-color, and text-shadow.
  • :hover styles now apply when the pointer moves over an element, so CSS hover menus open.
  • Responsive images now use the sizes attribute and the media condition of <picture> sources to select an image, as browsers do.
  • CSS grid layout, corner-shape, clip-path, 3D transforms, and inline SVG fill and stroke are more accurate.

Lower memory use

The engine now holds less memory for the DOM, layout, styles, and rendering.

Other changes

  • Dark mode: Emulation.setEmulatedMedia now applies prefers-color-scheme to CSS and matchMedia(). Playwright's colorScheme option and Puppeteer's page.emulateMediaFeatures() now work.
  • Reuse a Playwright login: The Kitesurf.setStorageState CDP command loads the cookies and localStorage from a Playwright storageState ↗︎ file.
  • localStorage across pages: A change to localStorage now reaches the other open pages of the same origin at once, and fires storage events. Kitesurf also supports the CDP DOMStorage domain.
  • Navigation: Back and forward navigation restores the scroll position, and supports history.scrollRestoration. A link with target="_blank" no longer replaces the current page.
  • Forms: A focused <select> element now responds to the arrow keys, Home, End, and typing an option's first letters.
  • Fonts: Web fonts declared with @font-face in a <style> element, or loaded with the FontFace API, now render. Korean text now renders, and Japanese and Traditional Chinese text use their regional glyph shapes.
  • Searchable PDFs: PDFs from Page.printToPDF now have correct text for Arabic, Chinese, Japanese, Korean, ligatures, and right-to-left scripts, so you can copy and search the text.

Kitesurf now passes 1,574,685 of 1,739,334 Web Platform Tests (WPT) ↗︎ subtests.

Track WPT progress and performance benchmarks ↗︎ on kitesurf.dev ↗︎. For more information, refer to the Kitesurf documentation.

Get the week’s Cloudflare changes in one email

Free, every Monday: only what changed in Cloudflare that week. We email you a link to confirm.

See last week’s digest

Free. Unsubscribe any time.

All Browser Run changes