[csswg-drafts] [css-values-4] <angle> need clamping details for degenerated values (#6105)

DevSDK has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-values-4]  <angle> need clamping details for degenerated values ==
https://drafts.csswg.org/css-values/#calc-range

Hello, CSSWG folks!

I'm currently implementing the infinity and NaN for 'calc()' function on chromium.

The step of implementation is now clamping to other components per each types e.g. <length>, <time> and etc.

Now I will work <angle> but the spec doesn't specify how to clamp for <angle> type for infinity and -infinity (also NaN).

According to the spec, the degenerated values must be clamped maximum and lowest values per the types.

However, I think if the <angle> is clamped to the maximum value (i.e., ≈3.35544e+0) seems like no make sense. Because the infinity degree is not specified how it looks like. (My minor opinion is the infinity degree is should look like 0 degrees or keep rotating)

Therefore, I think this might need a discussion about how to clamp 'infinity degree' and 'infinity rad' and so on.


Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6105 using your GitHub account


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

Received on Wednesday, 17 March 2021 02:00:26 UTC