Bug
1740048 [wpt PR 31542] - Clamp values outside float range to min/max float., a=testonly
Automatic update from web-platform-tests
Clamp values outside float range to min/max float.
This code change fixes a regression from https://crrev.com/c/
2661135 ,
and restores the ClampTo() behavior in all codepaths in
ComputeLength<float>.
This means that we will no longer store +inf/-inf as a computed value
for properties like word-spacing, and thus no longer confuse the
animation code with infinite computed values.
Without the code change, the added test only crashes in the
virtual/css-calc-infinity-and-nan-disabled/ virtual test suite.
Fixed:
1266769
Change-Id: I28e97005b7f33d7e7606bb69ea59ec9adfbf73a8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/
3268091
Reviewed-by: Xianzhu Wang <wangxianzhu@chromium.org>
Reviewed-by: Xiaocheng Hu <xiaochengh@chromium.org>
Commit-Queue: David Baron <dbaron@chromium.org>
Cr-Commit-Position: refs/heads/main@{#939519}
--
wpt-commits:
bbae74f5cb18f350ad934fdd91c1d9c9ae97cdce
wpt-pr: 31542