Re: [w3c/webcomponents] [idea] Not having <slot> element get in the way of structure. (#589)

Having slots as HTML 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`, event if it's empty.

-- 
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/589#issuecomment-343410633

Received on Friday, 10 November 2017 08:36:55 UTC