Bug 1740048 [wpt PR 31542] - Clamp values outside float range to min/max float.,...
commit3591d1a75847f8beb76741e009ab8581c778b10e
authorL. David Baron <dbaron@chromium.org>
Wed, 10 Nov 2021 09:59:21 +0000 (10 09:59 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Fri, 12 Nov 2021 11:45:53 +0000 (12 11:45 +0000)
tree5242b53d71ac47385dd227c084e143f00dbc4c3e
parent7f5782cc48a71dc75e2bfff8cec52cea7553b211
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
testing/web-platform/tests/css/css-transitions/crashtests/transition-large-word-spacing-001.html [new file with mode: 0644]