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

Re: [csswg-drafts] [css-display-3] Clarify whether display: contents applies to ::before and ::after

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Wed, 10 May 2017 20:24:40 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-300601904-1494447878-sysbot+gh@w3.org>
As @Loirooriol points out, it definitely has an observable effect, and is straightforward to define.  Basically, the following two bits of markup:

<style>div::before { content: "Foo"; }</style>

...should be completely indistinguishable as far as CSS is concerned.  There is no reason for the two to diverge in any way.

*That said*, I also wouldn't be too sad if we defined that it didn't work.  It's just inconsistent and breaks a constant that has nicely applied to ::before and ::after previously.

GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1345#issuecomment-300601904 using your GitHub account
Received on Wednesday, 10 May 2017 20:24:46 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:12 UTC