Re: [webcomponents] Composition Algorithm shouldn't unwrap slots (#308)

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