Re: [csswg-drafts] [css-animations-2, css-transitions-2] Entry and exit animations for top-layer elements (#8189)

> > @chrishtr Just wondering, instead of creating a new property, has syncing with `display` been considered? Mainly putting this out there since it has been done for inert: #8389
> 
> Interesting idea. I think it would work in cases where top layer elements animate to `display:none`, but not cases where they don't. e.g. a developer could add `dialog { display:block }` or `[popover] { display:block }` to their style sheet. In that situation, it's unclear when to remove the element from the top layer when dismissing the dialog or popover, without the UA having to try to guess or detect when animations are happening on dismiss.

If your element has `display: block` even before the transition, you're going to see a visible shift either way because of all the different adjustments top layer makes: position, containing-block, stacking context, etc. Adding a new property can control the timing of that shift, but cannot remove it. So I don't think this is an use case we should worry too much about.




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


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

Received on Saturday, 11 March 2023 01:08:06 UTC