Re: [csswg-drafts] [css-values-4] How to interpolate <ratio>? (#4953)

> [Here's a test showing off the behaviors.](http://software.hixie.ch/utilities/js/live-dom-viewer/saved/7966)

You forgot to animate the width of the 4th case. Here is the fixed showcase, also highlighting the start and end sizes: http://software.hixie.ch/utilities/js/live-dom-viewer/saved/7976

> This means that option 1 is scale-dependent

Specifically, if I got it right, linearly interpolating `aspect-ratio` from `a/b` to `c/d` with option 1 and `width` from `a * k0` to `c * k1` will only result in a linear interpolation for `height` if `k0 = k1`.

However, it's not clear to me that we should try to get that behavior. If some author wants to get the same behavior as if the `width` and `height` were interpolated independently, maybe they should just convert the initial and final widths into heights using the initial and final ratios, and actually interpolate `height` instead of `aspect-ratio`.

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

Received on Thursday, 16 April 2020 18:02:37 UTC