W3C home > Mailing lists > Public > public-css-archive@w3.org > May 2021

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

From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
Date: Sat, 15 May 2021 21:15:00 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-841726537-1621113298-sysbot+gh@w3.org>
> 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

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 20:27:23 UTC