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

> Very possibly I should actually define that keyword, in fact, so I can make the equivalency easier to talk about.

I know I thought of doing this early in the design, actually, I just thought it was awkward to have to write `calc-size(percent, size * .1 + 20px)` vs just being able to do `calc-size(10% + 20px, size)`. Don't know why I didn't think of just treating the one as the other, tho.

It's possible I might be able to combine the approaches, tho, and say that `calc-size(percent, 10% + 20px)` resolves the 10% against the percent size even when it's indefinite (as opposed to the standard behavior, where an indefinite % resolves against 0). I'd have to be a little careful to not accidentally imply that `calc-size(calc-size(percent, 10%), 20%)` resolves both %s against the indefinite percentage size, tho; that seems tricky to write since the basis is recursive. :/ Probably I just shouldn't do that.

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


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

Received on Friday, 3 May 2024 18:45:17 UTC