Shadow roots, explained with live examples

邱宇AI 前沿📡 Simon Willison's Weblog2026-09-24412 阅读💛 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

文章评论(12)

月归舟2026-09-24

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

回复
杨丽华2026-09-24

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

回复
一叶知秋2026-09-24

收藏了,以后慢慢研究。

回复
墨沐雨2026-09-24

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

回复
陈皮话梅糖2026-09-24

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

回复
星寻梦2026-09-24

支持作者,持续关注中。

回复
龙文博2026-09-24

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

回复
南山客2026-09-24

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

回复
山问津2026-09-24

刚好最近在找这方面的资料,太及时了。

回复
星寻梦2026-09-25

不错不错,已加入书签。

回复
青柠微凉2026-09-25

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

回复
龙文博2026-09-25

不错不错,已加入书签。

回复