Shadow roots, explained with live examples

AI小蝌蚪AI 前沿📡 Simon Willison's Weblog2026-09-241387 阅读💛 247 收藏

23rd September 2026

Tool Shadow roots, explained with live examples — Learn about shadow DOM through interactive examples that demonstrate style encapsulation, inheritance, slots, parts, and JavaScript access. Explore how shadow roots create isolated DOM trees with private stylesheets and elements that interact with the page DOM in specific, controlled ways.

Prompt to Fable 5.1 Medium:

Build an artifact to explain shadow roots in CSS with interactive examples

文章评论(7

月归舟4 小时前

写得挺用心的,支持一下。

回复
杨丽华6 小时前

这个观点很中肯,深有同感。

回复
一叶知秋4 小时前

收藏了,以后慢慢研究。

回复
墨沐雨6 小时前

作者写得真不错,学到了不少。

回复
陈皮话梅糖3 小时前

内容翔实,正好需要,先收藏再看。

回复
星寻梦4 小时前

支持作者,持续关注中。

回复
龙文博1 小时前

内容翔实,正好需要,先收藏再看。

回复