Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardHTMLhost and host-contextSingle-choice MCQ

How does :host-context() resolve its matching, and why is it the one shadow-DOM selector whose evaluation must walk into the document's light-DOM ancestor chain (flat tree) above the host?

:host-context(.rtl) .label { direction: rtl; }