Repository navigation
Description
Description
There's a set of CSS features which, when used together, make top layer elements, like <dialog> elements, or elements with the popover attribute, animatable as they enter and exit the top layer.
These features are:
- The
overlayCSS property - The
@starting-styleat-rule - The
transition-behaviorCSS property - The ability to animate the
displayandcontent-visibilityCSS properties
Out of those, the following only are not yet widely available:
- The
overlayCSS property- Not supported in Firefox, see https://bugzilla.mozilla.org/show_bug.cgi?id=1841456
- Not supported in Safari, see https://bugs.webkit.org/show_bug.cgi?id=276727
- The ability to animate the
displayandcontent-visibilityCSS properties
However, according to the Deprecate and remove: CSS overlay property chromestatus entry, developer feedback about the overlay property has shown that it creates bugs that are hard to track down, and Chrome engineers want to deprecate the property and keep the animated elements in the top layer automatically during their exit animations.
So this proposal is focused on making the display and content-visibility CSS properties be animatable.
Specification
https://drafts.csswg.org/css-display-4/#display-animation and https://drafts.csswg.org/css-contain-3/#content-visibility-animation
web-feature
display-animation
Test Links
Additional Signals
- Top layer animations allow animating popovers, which is a highly requested feature.
- Developer signals issue 13 👍🏻
- Discrete Properties Animations was voted 13 in State of CSS 2026's favorite new CSS features you started using this year question.
- Discrete Properties Animations was also part of State of CSS 2025's features you have difficulty using because of lack of support.
- Past proposals:
- Interop 2024 26 👍🏻, which was then split into 4 separate issues (The
transition-behaviorCSS property #580, TheoverlayCSS property #581, The@starting-styleCSS rule #582, Making thedisplayandcontent-visibilityCSS properties animatable #583), with a total of 26 👍🏻. - Interop 2025 13 👍🏻
- Interop 2026 21 👍🏻
- Interop 2024 26 👍🏻, which was then split into 4 separate issues (The
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
github-actions commentedon Sep 23, 2026
This comment was automatically generated based on the information you provided. Please don't edit it.
Below is additional information about the web feature (from the web-features project) which is referenced in your proposal.
If this doesn't accurately correspond to your proposal, please update your initial comment to include
web-features: <feature-id>.To find feature IDs, use the web-features explorer.
Feature display animation
display: noneand any otherdisplayvalue or animate betweencontent-visibility: hiddenand any othercontent-visibilityvalue. This also applies to transitions.displayCSS property,content-visibilityCSS propertycaptainbrosset commentedon Sep 28, 2026
Closing in favor of #1384.