JavaScript·Advanced·Conceptual·1 min read
How do Shadow DOM boundaries affect events?
Short interview answer
Only composed events cross a shadow boundary, and event.target may be retargeted to preserve encapsulation. event.composedPath() exposes the propagation path appropriate to the event and is useful for boundary-aware delegation.
Key takeaway
Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.