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

Both ::slotted() and ::part() cross a shadow boundary, but in opposite directions and with different target trees. Which statement correctly contrasts what each pseudo-element selects?

::slotted(p) { font-weight: bold; } /* rule A, in shadow CSS */ x-card::part(title) { color: blue; } /* rule B, in outer CSS */