[css-values-4] needs clamping details for degenerated values · Issue #6105 · w3c/csswg-drafts (original) (raw)

https://www.w3.org/TR/css-values-4/#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. ,

Now I will work but the spec doesn't specify how to clamp for 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 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)

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