- From: L. David Baron via GitHub <sysbot+gh@w3.org>
- Date: Fri, 27 Oct 2023 00:10:06 +0000
- To: public-css-archive@w3.org
`transition-behavior: allow-discrete` was recently added (see #4441 and #8857 and [Chrome blog post](https://developer.chrome.com/blog/entry-exit-animations/)) to address what I think are the same set of use cases. `@starting-style` is special because transitions operate on the style before and after a style change, and browsers don't keep styles up-to-date for elements that are `display:none` -- so there's no record of what the style "before the change" was and it's not necessarily possible to reconstruct it after the change has happened. When something is changing *to* `display: none` that problem doesn't exist and we don't need the special construct; we can use existing transition mechanisms. What `@starting-style` does is allow transitions to operate on elements that are changing from `none` to other values of `display`; we don't need a special mechanism to allow transitions in the other direction, and they should just work. -- GitHub Notification of comment by dbaron Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9500#issuecomment-1782098838 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 27 October 2023 00:10:08 UTC