The <shadow> element was part of early Shadow DOM v0 (mainly Chrome). It acted as an insertion point so an older shadow tree could show through a newer one.
Study it only as web history. For encapsulation today, attach one Shadow DOM v1 root with attachShadow(), compose light DOM with <slot>, and see <template> for declarative shadow roots (shadowrootmode).
Obsolete & non-standard.
Never standardized in HTML. Shadow DOM v0 (including <shadow>) was removed from Chrome around version 73. Modern browsers do not compose nested trees through this tag.
Use instead.
One host → one shadow root via element.attachShadow({ mode: "open" }) (or "closed"), plus <slot> for projected content.
Syntax
HTML Syntax
syntax.html
<shadow>…legacy insertion point…</shadow>
Both tags were used historically. Today the element is an unknown HTML tag — no Shadow DOM v0 behavior runs.
Reference
Attributes
<shadow> had no element-specific attributes. Global attributes never restored v0 composition:
Attribute
Description
Try it
(none specific)
No HTML attributes defined shadow-tree insertion behavior
The <shadow>element is obsolete. Modern Shadow DOM uses attachShadow() and slots — not this tag.
✓ Obsolete element
<shadow>
Shadow DOM v0 (including HTMLShadowElement / <shadow>) was Chrome-only and removed around Chrome 73. Other engines never shipped the element. Use Shadow DOM v1 instead.
0%Modern support for <shadow>
Google ChromeRemoved (~73)
Unsupported
Mozilla FirefoxNever
Unsupported
Apple SafariNever
Unsupported
Microsoft EdgeNever (Chromium: removed)
Unsupported
OperaRemoved with Chromium
Unsupported
Samsung InternetRemoved
Unsupported
<shadow> elementRemoved / unsupported
Bottom line: Do not use <shadow>. attachShadow() and <slot> are widely available for real encapsulation.
Remember
Key Takeaways
Status:<shadow> is obsolete Shadow DOM v0 — never use it.
Replace with:attachShadow() + <slot> (one root per host).
Declarative option:<template shadowrootmode> on modern engines.
Naming trap: the tag is not the same thing as a shadow root.
One line: skip <shadow>; learn attachShadow and slots for real encapsulation.
UA style
Default CSS Settings
Unknown elements like obsolete shadow typically display as inline. A simplified idea:
default.css
shadow {
display: inline;
}
There is no special user-agent stylesheet for Shadow DOM v0 composition.
Frequently Asked Questions
In early Shadow DOM v0 (mainly Chrome), shadow acted as an insertion point so an older shadow tree could render inside a newer one. It was never part of the standardized HTML Living Standard.
No. Do not use it. Browsers removed Shadow DOM v0 years ago. Current engines treat shadow as an unknown element with no shadow-composition behavior.
Attach one Shadow DOM v1 root with element.attachShadow({ mode: "open" }) or "closed", and compose light DOM with slot elements. For markup-first trees, use a template with shadowrootmode.
No meaningful element-specific attributes. Global attributes never restored Shadow DOM v0 behavior in modern browsers.
No. attachShadow is the standard Shadow DOM v1 API. The old shadow tag was a v0 insertion point for nested older trees and has no direct replacement element.
Start with custom elements plus attachShadow and slots, and see the template tag for declarative shadow roots (shadowrootmode).