File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,8 @@ element and it works quite similarily as well.
9
9
10
10
## Shadow Encapsulation: Scoped Styles
11
11
12
- Styles declared outside of a shadow tree cannot directly select elements within a shadow tree. Conversely, styles
13
- declared inside a shadow tree cannot directly select elements outside of a shadow tree. For both of these points, there
14
- are special pseudo-selectors which allow styles to cross the boundary of the Shadow DOM boundary — and we will cover
15
- them later on — but first we’ll focus on shadow encapsulation and its effect on styling. Here’s a basic demonstration:
12
+ Shadow DOM offers a boundary line between styles outside the tree, and styles inside the tree. Styles cannot cross
13
+ this boundary unintentionally. This is different to regular CSS where a selector can effect every element on a page.
16
14
17
15
``` html
18
16
<style >
You can’t perform that action at this time.
0 commit comments