Re: [csswg-drafts] [css-values-5] issues with interpolation rules for calc-size() (#10220)

> First, the expression calc-size(value) at the end doesn't make sense, because calc-size() takes two arguments.

Nope, it takes one as well:

> If only one argument is given, and it’s a [`<calc-sum>`](https://drafts.csswg.org/css-values-4/#typedef-calc-sum), then the provided argument is the [calc-size calculation](https://drafts.csswg.org/css-values-5/#calc-size-calculation), and the [calc-size basis](https://drafts.csswg.org/css-values-5/#calc-size-basis) defaults to [any](https://drafts.csswg.org/css-values-5/#valdef-calc-size-any). Otherwise, the provided argument is the calc-size basis, and the calc-size calculation defaults to [size](https://drafts.csswg.org/css-values-5/#valdef-calc-size-size).

------

> Second, this sentence seems to imply that all such combinations can be interpolated. It seems to me, particularly if the above interpretation is correct (rather than instead being calc-size(any, value ) for <length-percentage> values), that many such combinations cannot be interpolated, given the rules at the start of the section saying when two calc-size() values can be interpolated.

Right, it's meant to defer to that preceding section, which gives the behavior when you have two calc-size()s. That might indeed mean that they end up not being interpolable. How could I make this more clear?

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


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

Received on Tuesday, 16 April 2024 21:02:34 UTC