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

> a percentage of what exactly?

I don't mean that `auto` behaves like some specific `x%`. I mean that both `auto` and percentages compute as-is, to be resolved later during layout. Note that while `calc()` knows how to mix percentages and lengths, interpolating from `height: 100%` to `height: 100px`, if the percentage is cyclic, `100%*(1-t) + 100px*t` will likely behave as `auto` during all the transition (so visually it won't be smooth, even if the computed value goes smoothly from `100% + 0px` to `0% + 100px`). And when the transition ends, `200px` alone will not be cyclic, and there will be a sudden visual change.

So even if we allowed `calc()` to handle `auto`, in some cases it may still not look good (like already happens with percentages). This can be an argument for adding a way to transition used values instead of computed values.

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


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

Received on Monday, 28 February 2022 21:12:21 UTC