Re: [whatwg/dom] Declarative Shadow DOM (#510)

> A simple flag that changes shadow doms two-way encapsulation into a one-way encapsulation.

Seems to be an issue and a topic on its own. That applied for Shadow DOM, regardless whether it's imperative or declarative. I suggest starting a new thread for that.

All I can suggest now is 
```
<link rel="stylesheet" href="style.css"><!-- p {font-weight:bold; color:blue} -->
<shadowroot mode="…">
  <link rel="stylesheet" href="style.css">
  <style>p {color:red}</style>
  <p>Foo</p>
</shadowroot>
<p>Bar</p>
```

I don't have ambition for Declarative Shadow DOM to cover all `<style scoped>` use cases, but at least those which are solved by imperative JS API, without a need to in fact write CSS-in-JS.

But I'd really prefer to talk about it in a separate thread, as it applies to existing imperative Shadow DOM as well.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/510#issuecomment-363801987

Received on Wednesday, 7 February 2018 15:29:33 UTC