- From: Giovanni Lovato <notifications@github.com>
- Date: Fri, 10 Nov 2017 10:57:19 +0000 (UTC)
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 10 November 2017 10:57:42 UTC
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