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

In case my last comment is a bit unclear imagine something like the following user story for someone who's not extremely familiar with how this "open-styable" thing works:

1. I am using a CSS library
1. I would like to start putting some parts of my application into web components
1. I find the library doesn't work properly for shadow dom
1. I attach open-stylable onto my shadowroot
1. Sometime later I start getting styles appearing that I didn't expect
1. I work out that two components use the id `#someName` for some internal parts
1. I would like to be able to use `#someName` scoped only to my component so that I don't need to keep track of all names in all components
1. I am stuck because `open-styable` provides no mechanism to inherit just some styles

In this likely scenario, ultimately the user only wanted `open-styable` so their one CSS library would be available in their shadow roots, but they also unintentionally got styles leaking from per-component stylesheets.

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

Message ID: <WICG/webcomponents/issues/909/1251694208@github.com>

Received on Tuesday, 20 September 2022 00:08:03 UTC