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

Should `sqrt()` and trigonometric functions (excluding `atan2()`) accept `<percentage>`? This does not currently appear to be the case in Chrome and FF.

I am asking this because they are defined to take calculation(s) *resolving* either to `<number>` or `<angle>`, and now their return type should either be consistent (the result of adding argument types) or made consistent, which I think is not usefull if they do not accept `<percentage>`.

I also note that `log()` and `exp()` only accept calculation(s) *resolving* to `<number>`, but their return type is not defined to be consistent or made consistent.

---

[Typo](https://drafts.csswg.org/css-values-4/#css-contain-a-percentage):

  > A value contains a percentage if its type **is type** is «[ "percent" → 1 ]»

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


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

Received on Friday, 1 March 2024 10:08:51 UTC