- From: Eoghan Murray via GitHub <sysbot+gh@w3.org>
- Date: Mon, 17 May 2021 10:50:27 +0000
- To: public-css-archive@w3.org
@Loirooriol > What happens if you have height: calc(auto + 5px); align-self: stretch? Thinking about this some more, this kind of confirms to me that `auto` shouldn't be permissable in `calc`. For me `auto` is an instruction to the CSS engine to 'do what you would have done'. As an author it shouldn't be expected that I have to reason about how auto works, i.e. what `auto + 5px` means or how it should combine; which if it is not obvious to implementers, would definitely be non-obvious to authors. `calc(100% + 5px)` makes sense to me (as an advanced user), as 100% is a unit, whereas `auto` is an instruction. That doesn't mean transitioning to `auto` shouldn't work, just that it should mean "calculate the size you would have calculated had auto been applied immediately, and then interpolate to that size over the intervening time". (So basically @benbucksch's [sketch of the algorithm](https://github.com/w3c/csswg-drafts/issues/626#issuecomment-841847089)) -- GitHub Notification of comment by eoghanmurray Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/626#issuecomment-842223150 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 17 May 2021 10:50:29 UTC