Re: [csswg-drafts] [css-values] specification for calc() should be clearer about when the result has a percentage (#10017)

Another relevant example showing something that we *do* want to accept is `width: calc(log((10px + 20%) / 15px) * 3em)`.  The `log()` function accepts only `<number>` and in this case it is being used in a context where percentages are lengths.  So `log()` allows the number it accepts to have a percent hint, and the percent hint needs to be present on the result type of `log()` as well, so that whatever contains the `log()` will eventually check that the context is one where percentages are lengths.

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


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

Received on Tuesday, 5 March 2024 14:53:31 UTC