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

shadow: none|open|closed, default is none
```html
<template shadow="open"></template>
<element shadow="open">
    <template></template>
</element>
```
```javascript
customElements.define('custom-element', class extends HTMLElement{}, {
    shadow: 'open'
});
customElements.define('custom-element', class extends HTMLElement {
    static get shadow() { return 'open'; }
});
```

-- 
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-332399556

Received on Wednesday, 27 September 2017 03:37:05 UTC