Re: [webcomponents] Composition Algorithm shouldn't unwrap slots (#308)

> One huge benefit of this approach is that the author can then override display property, e.g. to show borders around slot elements, if they wanted to, and removes one more magic from shadow DOM.

FYI, we can get this benefit by wrapping a slot with a arbitrary element, like:

Before:

```
<shadow-host>
  <shadow-root>
    <slot name="xxx">
  <div slot="xxx">...</div>
  <div slot="xxx">...</div>
```


After:

```
<shadow-host>
  <shadow-root>
    <div class="wrapper">
      <slot name="xxx">
  <div slot="xxx">...</div>
  <div slot="xxx">...</div>
```


---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/308#issuecomment-137301086

Received on Thursday, 3 September 2015 02:04:32 UTC