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: pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy