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: Sun, 16 May 2021 17:56:19 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-841852311-1621187778-sysbot+gh@w3.org>
That's not consistent with how transitions involving percentages react to page changes that affect the resolved value, as I mentioned in https://github.com/w3c/csswg-drafts/issues/626#issuecomment-631050968

Rather than speacial-casing `auto` in some hacky and inconsistent way, I would probably prefer to have something like `transition-property: used(height)`, which would transition used values instead of computed ones. No need to define `calc(auto)`, then, since the used value is a length. This would also benefit other properties, like if you have `line-height: normal; transition: used(line-height) 1s;` and then the font changes, the line height will transition smoothly even if the computed value stays as `normal`.

That said, I don't think that used values are always well defined in the specs, so this would also be a big work. May not be easy to implement either. And being based on used values means that implementations will have to perform layout in order to calculate them, so it seems more expensive.

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

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Sunday, 16 May 2021 17:56:21 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:33 UTC