Re: [csswg-drafts] [css-values-4] Normalization of arc trigonometric function values (#9625)

The general pattern thruout the math functions section is that the main section defines the normal behavior, then the "Argument Ranges" subsection defines some special cases. If this somehow isn't clear, we can possibly work on improving the clarity, but the general pattern of "define the normal behavior, then define special cases" occurs all thruout CSS specs, and specifications in general, so I don't see why it would be surprising here in particular.

And yes, as Oriol said, the arcsin of 2 is simply undefined. There is no possible answer for it *anyway*. It definitely is not the case that it's normally outside the [-90deg, 90deg] range and can be clamped to one of the endpoint values. It's also not clamping, in any case; as Oriol says, arcsin is a multi-valued function, so we're selecting the answer that lies in a particular range (which is a standard range, and matches what JS does).

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


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

Received on Tuesday, 28 November 2023 20:29:45 UTC