Re: [csswg-drafts] [css-display][css-cascade] Should `display: contents` affect inheritance?

But note inheritance is not always a document tree concept. From [CSS display](https://www.w3.org/TR/css-display-3/#intro),

> Unlike element-generated boxes, whose styles inherit strictly through the element tree, anonymous boxes (which only exist in the box tree) inherit through their box tree parentage.

And some pseudo-elements like [`::first-line`](https://www.w3.org/TR/css-pseudo-4/#first-line-inheritance) have a customized inheritance which doesn't respect the element tree.

Anyways, you are right there might also be some advantage in inheriting from non-rendered containers, and with at least two implementations and a near-CR spec, maybe it's not worth to change.

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1098#issuecomment-287110557 using your GitHub account

Received on Thursday, 16 March 2017 16:20:05 UTC