DEV Community

Discussion on: Enhancing Vanilla Web Components

Collapse
 
jenc profile image
Jen Chan • Edited

I just realized why you might want to "remove" the Shadow DOM... in the case of wanting to style light-dom elements, right? Or is it because style encapsulation can lead to FOUCE?

Collapse
 
macdonst profile image
Simon MacDonald Begin

We feel that Shadow DOM should be used as a last resort. By avoiding it's use until absolutely necessary you can get around the FOUCE issue, the problem with Shadow DOM and form elements, the a11y is better, if you SSR your components they work without JS which allows you to do true progressive enhancement.