[w3c/webcomponents] Having slots as element prevents styling empty containers (#701)

Having slots as element prevents styling empty containers, e.g.

```html
<my-layout-component>
  <slot name="foo"></slot>
</my-layout-component>
```

Say I need to hide `my-layout-component` if empty, this won't work:

```css
my-layout-component:empty {
  display: none;
}
```

because there's the `slot`, even if I do not place any element in it via `slot="foo"`.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/701

Received on Friday, 10 November 2017 10:57:42 UTC