tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit aa1eca0183d271d29ff123bdaae75179ad3fb7ab
parent c976b97f859cf378693c8054d84c3fc2b6d9d4d1
Author: moonira <moonira@google.com>
Date:   Sat, 22 Nov 2025 21:11:11 +0000

Bug 2001308 [wpt PR 56138] - Censor <number> calc special values, a=testonly

Automatic update from web-platform-tests
Censor <number> calc special values

<number> type calc special values (like infinity, nan, etc.) should be
"censored" same as other types like <length>, <angle> etc.

https://www.w3.org/TR/css-values-4/#top-level-calculation

Bug: 413385732
Change-Id: I8e7a601f8d9e362260f89a043acd5ee91d6c7556
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7170434
Commit-Queue: Munira Tursunova <moonira@google.com>
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1547704}

--

wpt-commits: cd938619fc79ac227ef332563e34d18a9e8dfbf6
wpt-pr: 56138

Diffstat:
Mtesting/web-platform/tests/css/css-values/calc-infinity-nan-computed.html | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/testing/web-platform/tests/css/css-values/calc-infinity-nan-computed.html b/testing/web-platform/tests/css/css-values/calc-infinity-nan-computed.html @@ -76,6 +76,11 @@ testTransformValuesCloseTo("rotate(calc(infinity * 1grad))", 0.0001, "rotate(0de testTransformValuesCloseTo("rotate(calc(-infinity * 1grad))", 0.0001, "rotate(0deg)"); testTransformValuesCloseTo("rotate(calc(NaN * 1grad))", 0.0001, "rotate(0deg)"); +// For <number> +testComputedValueGreaterOrLowerThan("scale", "calc(max(infinity, 10))", REALLY_LARGE); +testComputedValueGreaterOrLowerThan("scale", "calc(infinity)", REALLY_LARGE); +testComputedValueGreaterOrLowerThan("scale", "calc(-infinity * 10)", REALLY_LARGE_NEGATIVE); + </script> </body> </html>