Re: [WICG/webcomponents] "open-stylable" Shadow Roots (#909)

> an end user, importing and using 3rd party elements, can not force the components to call their own attachShadow methods with a setting to make styles leak in

The should not be able to. A component should only expose internal DOM to styling if it opts-into it. Otherwise it's taking on potentially breakable API contracts it might not want to.

If a user patches `attachShadow()` or the element definition directly, they know they're off the well-lit path for that element.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/909#issuecomment-813088943

Received on Sunday, 4 April 2021 19:42:23 UTC