Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
Correct DOOM to DOM
  • Loading branch information
mihansweatpants authored Apr 20, 2019
1 parent 0697954 commit 42ae87a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 8-web-components/6-shadow-dom-style/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ Here `<p>John Smith</p>` becomes bold, because CSS inheritance is in effect betw
Another option is to use `::slotted(selector)` pseudo-class. It matches elements based on two conditions:
1. The element from the light DOOM that is inserted into a `<slot>`. Then slot name doesn't matter. Just any slotted element, but only the element itself, not its children.
1. The element from the light DOM that is inserted into a `<slot>`. Then slot name doesn't matter. Just any slotted element, but only the element itself, not its children.
2. The element matches the `selector`.
In our example, `::slotted(div)` selects exactly `<div slot="username">`, but not its children:
Expand Down

0 comments on commit 42ae87a

Please sign in to comment.