Shadow DOM
Shadow DOM is a browser feature that allows websites to define self-contained HTML elements on the website.[src] These self-contained elements, called shadow trees, allow website developers to bundle together related HTML markup and CSS styling in a manner such that the styling and code does not affect other surrounding elements.[src] This solves a recurring problem that web developers face of unintended interference between components, where CSS rules written for one part of a page can accidentally affect unrelated parts of the website.[src] The shadow DOM feature originated as part of the Web Components initiative by Google alongside other proposals like Custom Elements and the HTML template element in 2013.[src] After criticism from Apple and Mozilla on the first version of the Shadow DOM proposal, called the "v0" design, a new proposal called the "v1" design was published and was subsequently adopted by all major web browsers.[src]
Shadow DOM is a browser feature that allows websites to define self-contained HTML elements on the website.[src] These self-contained elements, called shadow trees, allow website developers to bundle together related HTML markup and CSS styling in a manner such that the styling and code does not affect other surrounding elements.[src] This solves a recurring problem that web developers face of unintended interference between components, where CSS rules written for one part of a page can accidentally affect unrelated parts of the website.[src] The shadow DOM feature originated as part of the Web Components initiative by Google alongside other proposals like Custom Elements and the HTML template element in 2013.[src] After criticism from Apple and Mozilla on the first version of the Shadow DOM proposal, called the "v0" design, a new proposal called the "v1" design was published and was subsequently adopted by all major web browsers.[src]
10 sentences · 10 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Shadow DOM." encyclopegia.org, 2026, https://encyclopegia.org/wiki/shadow-dom. Accessed 26 November 2026.
Chicago
"Shadow DOM." encyclopegia.org. Accessed November 26, 2026. https://encyclopegia.org/wiki/shadow-dom.
APA
encyclopegia.org. (2026). Shadow DOM. Retrieved November 26, 2026, from https://encyclopegia.org/wiki/shadow-dom
Accessed November 26, 2026 · CC BY-SA 4.0 · citation page · JSON