Re: [csswg-drafts] [css-values-4] Should `pow()`/`sqrt()`/`sign()`/`abs()` only take calculations matching `<number>`? (#10765)

Why would that not be allowed? Again referring to ["type of a calculation"](https://drafts.csswg.org/css-values-4/#determine-the-type-of-a-calculation), that `sin()` argument has the type {"angle" -> 1} with a percent hint of "angle". That's valid for the `sin()` function, as it [matches](https://drafts.css-houdini.org/css-typed-om-1/#cssnumericvalue-match) `<angle>`. `sin()` then resolves to the empty type {} with a percent hint of "angle", we multiply that by an angle, and end up with `calc()` having the type {"angle" -> 1} with a percent hint of "angle" again.

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


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

Received on Friday, 23 August 2024 18:38:51 UTC