Skip to content

[css-values-4] <angle> needs clamping details for degenerated values #6105

Closed
@DevSDK

Description

@DevSDK

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. <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)

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions