W3C home > Mailing lists > Public > public-css-archive@w3.org > March 2017

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

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Thu, 16 Mar 2017 17:26:35 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-287131449-1489685194-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:30:30 UTC