Shadow roots, explained with live examples

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Frontend developers get a practical, interactive reference for shadow DOM style encapsulation, slots and JS access, but nothing here changes how anyone works this week.

Read this as

Simon Willison published a blog post on 23 September 2026 explaining shadow roots, the browser feature that lets part of a web page keep its own hidden structure and styles. It uses an interactive artifact to demonstrate style encapsulation, inheritance, slots and JavaScript access. It is a developer tutorial, not a product or research announcement, and includes no tools to download.

This is an educational post by Simon Willison, dated 23 September 2026, teaching shadow DOM concepts through an interactive artifact. There is no product, pricing, company or competitive move involved, so it carries no business cost or risk implications. Decision-makers can safely ignore it unless they employ frontend developers.

Willison's 23 September 2026 post builds an interactive artifact demonstrating shadow root mechanics: style encapsulation with isolated stylesheets, style inheritance across the boundary, slot distribution, the ::part mechanism, and JavaScript access to shadow DOM internals. It references running Datasette with Pyodide and service workers in-browser and Qwen 3.8 27B. No benchmark figures or APIs are introduced.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Simon Willison shadow roots Datasette Pyodide Qwen 3.8 27B

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading