W3C home > Mailing lists > Public > public-css-archive@w3.org > February 2020

Re: [csswg-drafts] [web-animations-1] Clarification about `target` and `pseudoElement` relationship (#4745)

From: Antoine Quint via GitHub <sysbot+gh@w3.org>
Date: Wed, 05 Feb 2020 20:52:58 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-582606794-1580935976-sysbot+gh@w3.org>
Right, looking at the full definition of [`content: none`](https://drafts.csswg.org/css-content/#valdef-content-none) (emphasis mine):

> On elements, this inhibits the children of the element from being rendered as children of this element, as if the element was empty.
> On pseudo-elements it inhibits the creation of the pseudo-element as if it had display: none.
> **In neither case does it prevent any pseudo-elements which have this element or pseudo-element as an originating element from being generated.**

That last bit seems to be what defines that pseudo-elements generation are not bound by `content` being set to something other than `none`.

GitHub Notification of comment by graouts
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4745#issuecomment-582606794 using your GitHub account
Received on Wednesday, 5 February 2020 20:52:59 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:00 UTC