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

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

From: L. David Baron via GitHub <sysbot+gh@w3.org>
Date: Tue, 11 Dec 2018 01:01:45 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-446033338-1544490104-sysbot+gh@w3.org>
The problem today is that detecting whether a box is needed for a `::before` or `::after` is a very quick check of just two properties (`content` and `display`).  What you're proposing would require either checking some arbitrary number of properties (to look for anything that would cause a non-default rendering), or just always creating a box.

Also, I think it's quite common to style `::before` and `::after` quite generally with the assumption that those styles only apply to the pseudo-elements that are brought into existence by the `content` property.

-- 
GitHub Notification of comment by dbaron
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3419#issuecomment-446033338 using your GitHub account
Received on Tuesday, 11 December 2018 01:01:49 UTC

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