Skip to content

[css-transforms] clamping NaN and infinity in transformation operation  #6427

Open

Description

@DevSDK

The operations with huge values in CSS transformation could be infinity and finally NaN by infinity operations.

Recently, The patch about clamping NaN and infinity have been merged to Chromium to prevent the overflow of the evaluation NaN with implementing infinity and NaN in calc() from css-values-4.

CSS Transformation module 1 and 2 are missing how the NaN or infinity values clamping to the valid range (such as represent range? ).

If it does not exist, I think the clamping for degenerated values should be needed because the matrix operations could make the NaN or infinity in nested operation with huge numbers.

If I miss the spec, please let me know :)!

Thanks!

cc. @dbaron

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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