- From: Tab Atkins Jr. <notifications@github.com>
- Date: Wed, 30 Sep 2015 12:31:35 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
Received on Wednesday, 30 September 2015 19:32:13 UTC
Elements with `display:contents` are still elements; they still receive styles, participate in inheritance, etc. All that `display:contents` does is prevent them from generating a box, and "lift" the boxes of their children into their own context (so they can participate in the grandparent's layout, etc.) > I assumed that `slot {color: red}` does nothing unless users overwrites UA's `slot {display: contents}` with something like `slot {display: block}`. It "does nothing" *visible, to the slot element itself,* but the slot element still gets its `color` property set, and that will inherit as normal. (Tho, unless slots have changed significantly from how `<content>` worked, there's no inheritance from slot->slotted content.) --- Reply to this email directly or view it on GitHub: https://github.com/w3c/webcomponents/issues/308#issuecomment-144515431
Received on Wednesday, 30 September 2015 19:32:13 UTC