[csswg-drafts] [css-contain] Consider 'discrete' Animation Type for 'content-visibility' (#7255)

zcorpan has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-contain] Consider 'discrete' Animation Type for 'content-visibility' ==
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:

- http://software.hixie.ch/utilities/js/live-dom-viewer/saved/10280
- http://software.hixie.ch/utilities/js/live-dom-viewer/saved/10281

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

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 5 May 2022 21:05:10 UTC