diff --git a/8-web-components/6-shadow-dom-style/article.md b/8-web-components/6-shadow-dom-style/article.md index 98e246a7f2..5fddee5424 100644 --- a/8-web-components/6-shadow-dom-style/article.md +++ b/8-web-components/6-shadow-dom-style/article.md @@ -176,7 +176,7 @@ customElements.define('user-card', class extends HTMLElement { ``` -Here `

John Smith

` becomes bold, because CSS inheritance is in effect between the `` and its contents. But in CSS itself not all properties are inherited. +Here `John Smith` becomes bold, because CSS inheritance is in effect between the `` and its contents. But in CSS itself not all properties are inherited. Another option is to use `::slotted(selector)` pseudo-class. It matches elements based on two conditions: