[css-contain] Consider 'discrete' Animation Type for 'content-visibility'
Nobody has claimed this yet.
- Dominant language
- Bikeshed
- Stars
- 4.9k
- Forks
- 816
- PR merge metrics
- PR metrics pending
Description
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/10282
Is there a reason for not using 'discrete' for 'content-visibility'?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the CSS Containment Level 2 definition of content-visibility and its Animation Type, then compare the CSS Display visibility definition and the two linked live DOM viewer examples. Determine whether a discrete animation type addresses the hidden=until-found transition behavior; done means the specification discussion reaches a documented decision.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css
- Domain
- web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100