Re: [WICG/webcomponents] Web components should be able to easily adapt to the host page while maintaining enapsulation (Issue #986)

I think the main point here is that, in an ideal world, a user (who may or may not be very knowledgeable about HTML, CSS or JS) would have to a) link some style sheet with buttons and stuff and b) link some `XGallery.js` file from somewhere and the *should* be able to just throw an `<x-gallery>` on the page and have it Just Work™

That's the promise of custom elements: you import the JS and put the elements on your page, and *most* of the complexity is the responsibility of the element author. So it makes more sense to give component authors the tools to handle selectively pulling in external styles they wish to use while preventing others from messing up their components.

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

Message ID: <WICG/webcomponents/issues/986/1456885415@github.com>

Received on Monday, 6 March 2023 20:03:23 UTC