Re: [csswg-drafts] [css-display] Why is display listed as not animatable instead of animation type: discrete? (#6429)

Though it's not a strong preference, I personally prefer the alternative approach in https://github.com/w3c/csswg-drafts/issues/6429#issuecomment-1462399688 .  The example of CSS animation in https://github.com/w3c/csswg-drafts/issues/6429#issuecomment-1318933547 looks awkward to me. Given that to animate the display property web authors need to specify at least a display property value in a keyframe, even if it's the same right? For example, the example can be written;

```
@keyframes slideaway {
  from { display: flex; }
  to { transform: translateY(40px); opacity: 0;}
}

#target {
  display: flex;
}

#target.hide {
  animation: slideaway 200ms;
  display: none;
}
```

Web authors will probably need to care that they need to specify the same display value. Am I missing something?

-- 
GitHub Notification of comment by hiikezoe
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6429#issuecomment-1484270623 using your GitHub account


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

Received on Sunday, 26 March 2023 23:28:50 UTC