- From: L. David Baron via GitHub <sysbot+gh@w3.org>
- Date: Tue, 16 Apr 2024 19:04:53 +0000
- To: public-css-archive@w3.org
dbaron has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-values-5] issues with interpolation rules for calc-size() == The [rules for interpolating `calc-size()`](https://drafts.csswg.org/css-values-5/#interp-calc-size) (see #626) currently say: > As well, a [`calc-size()`](https://drafts.csswg.org/css-values-5/#funcdef-calc-size) can be interpolated with a [`<length-percentage>`](https://drafts.csswg.org/css-values-4/#typedef-length-percentage) or an [`<intrinsic-size-keyword>`](https://drafts.csswg.org/css-values-5/#typedef-intrinsic-size-keyword), behaving as if the second value were `calc-size(value)`. I see a few issues with this sentence. First, the expression `calc-size(value)` at the end doesn't make sense, because `calc-size()` takes two arguments. I think it might be that what this meant to say is "behaving as if the non-`calc-size()` value *value* were `calc-size(` *value* `, size)`. But there are other possible options here (although I think they have problems and this one is probably correct). 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. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10220 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 19:04:55 UTC