[csswg-drafts] [css-transforms] clamping NaN and infinity in transformation operation (#6427)

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

== [css-transforms] clamping NaN and infinity in transformation operation  ==
The operations with huge values in CSS transformation could be infinity and finally NaN by infinity operations.

Recently, [The patch](https://chromium-review.googlesource.com/c/chromium/src/+/2882598) 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](https://www.w3.org/TR/css-values-4/#calc-syntax).

CSS Transformation module [1](https://www.w3.org/TR/css-transforms-1) and [2](https://www.w3.org/TR/css-transforms-2/) are missing how the NaN or infinity values clamping to the valid range (such as [represent range](https://en.wikipedia.org/wiki/Double-precision_floating-point_format)? ).

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 

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


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

Received on Wednesday, 7 July 2021 00:11:33 UTC