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

> Just add to the spec that "calc(auto)" should calculate the value of "auto" for the property.

It's not that easy. `auto` has several special behaviors, for example, it enables [`justify/align-self: stretch`](https://drafts.csswg.org/css-align-3/#valdef-justify-self-stretch). What happens if you have `height: calc(auto + 5px); align-self: stretch`? Should the box not be stretched, since `height` is not exactly `auto`? Should the box be stretched to fill the container, because it includes `auto`? Should the box be first stretched to fill the container, and then grow 5 extra pixels?

And that's just one case, several specs should be revisited and every interaction with `auto` should define how combinations with `auto` behave.

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


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

Received on Saturday, 15 May 2021 21:15:02 UTC