Changing Stencil's Default Encapsulation from Scoped to Shadow DOM
0 reputation · 07 May 2026, 10:00 UTC
Assess the impact of making shadow: true the default encapsulation mode for new Stencil components in a future major release.
Consider the trade‑off between stronger DOM/style isolation and the potential breakage for consumers who currently rely on querySelector access or global style overrides under the scoped emulation.
What version bump would signal this change, how should migration documentation address existing scoped‑styled consumers, and what automated checks could help teams detect reliance on internal DOM before upgrading?