Skip to content

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

Closed
@MatsPalmgren

Description

@MatsPalmgren

The current spec 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) but sadly it broke a bunch of sites so we had to disable it for now (bug 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions