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

No, inheritance is definitely not affected by `display:contents`, and that's very intentional. Inheritance always runs thru the element tree, except for the one case it can't (anonymous boxes).  Pseudo-elements inherit from their originating element.

(Otherwise, how would `display: inherit` work?)

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

Received on Thursday, 16 March 2017 17:26:41 UTC