Skip to content

Commit

Permalink
Merge pull request #929 from mihansweatpants/patch-2
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
iliakan authored Apr 21, 2019
2 parents 7b884bf + 42ae87a commit 0a2b817
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 0a2b817

Please sign in to comment.