W3C home > Mailing lists > Public > public-css-archive@w3.org > August 2021

[csswg-drafts] [css-content] Implementing content:none on elements is not web-compatible (#6503)

From: Mats Palmgren via GitHub <sysbot+gh@w3.org>
Date: Mon, 09 Aug 2021 16:18:24 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-964158825-1628525903-sysbot+gh@w3.org>
MatsPalmgren has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-content] Implementing content:none on elements is not web-compatible ==
The [current spec](https://drafts.csswg.org/css-content/#valdef-content-none) says:
> `none`
>    On elements, this inhibits the children of the element from being rendered as children of this element, as if the element was empty.

We implemented that in Gecko ([bug 1699964](https://bugzilla.mozilla.org/show_bug.cgi?id=1699964)) but sadly it broke a bunch of sites so we had to disable it for now ([bug 1719239](https://bugzilla.mozilla.org/show_bug.cgi?id=1719239)).

So the spec needs to say that `none` has no effect on elements (what all UAs currently implement AFAIK).
If we want to retain this feature, then we need a new keyword for it (`children-none` or whatever).

CC @emilio 

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6503 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 9 August 2021 16:18:26 UTC

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