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

> Okay so, web authors normally will write something like;
> 
> ```
> @keyframes slideaway {
>   to { transform: translateY(40px); opacity: 0; display: none:}
> }
> 
> #target.hide {
>   animation: slideaway 200ms;
>   display: none;
> }
> ```
> 
> This doesn't look awkward. :)

@hiikezoe this doesn't work. The implicit `from` keyframe uses the underlying value for display, which is `none` from the `#target.hide` rule. `transition: display 200ms` however would work.

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


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

Received on Tuesday, 28 March 2023 17:42:27 UTC