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

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