Closed Bug 2072153 Opened 2 months ago Closed 2 months ago

[wpt-sync] Sync PR 62704 - Don't fold expressions to NaN/Inf while resolving a CalculationValue

Categories

(Core :: CSS Parsing and Computation, task, P4)

task

Tracking

()

RESOLVED FIXED
158 Branch
Tracking Status
firefox158 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Attachments

(1 file)

Sync web-platform-tests PR 62704 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/62704
Details from upstream follow.

Fredrik Söderquist <fs@opera.com> wrote:

Don't fold expressions to NaN/Inf while resolving a CalculationValue

In an expression like "calc(4px / round(100% / 25px))", evaluating with
a max value of 1 will yield infinity - which is not correct. Disable
this code behind the flag CSSCalcEarlyNaNAndInfFolding.

Fixed: 560226430
Change-Id: I663b7c8a4920e564eab9ace95b42b686cc7a337e

Reviewed-on: https://chromium-review.googlesource.com/8398590
WPT-Export-Revision: a73479703ea3a0276944ec02ad3f5ca40303f6d3

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Attached file Notable wpt changes —

CI Results

Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 514 tests

Status Summary

Firefox

OK : 1[GitHub] 278[Gecko-linux2404-64-debug] 279[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS: 22[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 41[GitHub] 5828[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 5980[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 5993[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview]
FAIL: 4557[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 4603[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 4618[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]

Chrome

OK : 1
PASS: 37
FAIL: 4

Safari

OK : 1
PASS: 37
FAIL: 4

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

(See attachment for full changes)

Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 158 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: