You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 8-web-components/3-shadow-dom/article.md
+25-22
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ A DOM element can have two types of DOM subtrees:
40
40
1. Light tree -- a regular DOM subtree, made of HTML children.
41
41
2. Shadow tree -- a hidden DOM subtree, not reflected in HTML, hidden from prying eyes.
42
42
43
-
Technically, it's possible for an element to have both at the same time. Then the browser renders only the shadow tree. But usually the element content is either "light" (included into the main DOM/HTML) or "shadowed" (encapsulated from it).
43
+
Technically, it's possible for an element to have both at the same time. Then the browser renders only the shadow tree. We'll why that may be needed later in this chapter.
44
44
45
45
Shadow tree can be used in Custom Elements to hide internal implementation details.
46
46
@@ -82,33 +82,25 @@ That's how it looks in Chrome dev tools:
0 commit comments