Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardHTMLslotted part exportpartsSingle-choice MCQ

::part() lets outside CSS style elements marked with part inside a shadow tree, but it deliberately does NOT pierce nested shadow trees by default. What is the mechanism that makes a part of an inner shadow tree reachable from the outermost document?

<outer-el> #shadow-root <inner-el exportparts="label: outer-label"> #shadow-root <span part="label">hi</span>