Skip to content

[css-contain] Consider 'discrete' Animation Type for 'content-visibility' #7255

@zcorpan

Description

@zcorpan

https://drafts.csswg.org/css-contain-2/#propdef-content-visibility defines the Animation Type as "not animatable". This makes it hard to transition between <div hidden=until-found> and not-hidden (and back), since the content disappears immediately.

The 'visibility' property has a 'discrete' Animation Type, which allows for transitions without the above problem.
https://drafts.csswg.org/css-display-3/#visibility

Compare:

Is there a reason for not using 'discrete' for 'content-visibility'?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions