W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2018

[csswg-drafts] Remove the "content" requirement for ::before and ::after? [css-pseudo] (#3419)

From: Pomax via GitHub <sysbot+gh@w3.org>
Date: Tue, 11 Dec 2018 00:34:28 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-389546994-1544488467-sysbot+gh@w3.org>
Pomax has just created a new issue for https://github.com/w3c/csswg-drafts:

== Remove the "content" requirement for ::before and ::after? [css-pseudo] ==
The draft spec for CSS4 pseudo-selects still state that ::before and ::after must have ` content` property with value that is not `none`, and while this might have made sense back in 2011, this seems a very strange requirement to preserve. 

Can https://drafts.csswg.org/css-pseudo-4/#generated-content be changed to finally make `content` as optional as any other CSS property? Especially given that `user-select: none` exists, which means ::before and ::after no longer need to be used as a hack to inject unselectable text anymore.



Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3419 using your GitHub account
Received on Tuesday, 11 December 2018 00:34:29 UTC

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