Skip to content

Commit 183d5f9

Browse files
knowlerkeithamus
andauthored
Focus on the boundary from shadow DOM + improve clarity
Co-authored-by: Keith Cirkel <[email protected]>
1 parent 81782d9 commit 183d5f9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

learn/components/styling.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@ element and it works quite similarily as well.
99

1010
## Shadow Encapsulation: Scoped Styles
1111

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.
1614

1715
```html
1816
<style>

0 commit comments

Comments
 (0)