Re: [csswg-drafts] [css-transitions] Transition to height (or width) "auto" (#626)

> CSS mostly pretends time doesn't exist

I understand, but isn't time an inherent component of any animation and transition? In other words, if you want to do CSS transitions, then CSS must know about time. It's inherent.

So, yes, the CSS engine would need to know that "auto" has been re-calculated, and save the old and new concrete value in pixels, and save the time of change along with it (i.e. 3 integer/float values). Then you can transition between those: start time and start value = before change, end value = after change, end time = length of transition as given in CSS.

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


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

Received on Friday, 12 April 2024 19:55:27 UTC