Closed Bug 1961973 Opened 23 days ago Closed 21 days ago

[wpt-sync] Sync PR 52097 - Fix extra parens in sum/product nodes.

Categories

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

task

Tracking

()

RESOLVED FIXED
139 Branch
Tracking Status
firefox139 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Steinar H. Gunderson <sesse@chromium.org> wrote:

Fix extra parens in sum/product nodes.

We already have all the machinery needed to collect sub-nodes from
our binary tree (e.g. ((a + b) + c) into {a,b,c}, which is then
further sorted), so when serializing, just use that vector instead
of creating a new binary tree from the sorted result. This fixes
so that we properly write (a + b + c) for sum nodes, and likewise
for product nodes.

Bug: 40118274
Change-Id: I4d72228083dad3e9d8adb815aa5afcf1b7d0df36
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6462191
Reviewed-by: Daniil Sakhapov \<sakhapov@chromium.org>
Commit-Queue: Steinar H Gunderson \<sesse@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1449865}

PR 52097 applied with additional changes from upstream: 7d36ceb8b9bf13b5393fe050f346d414b4a8e5db, 650766152171c347ff4eba444514a38870d36576, 7001c79f696161493ada2fab0ef087fd72ee53e3
Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core

CI Results

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

Total 2 tests and 11 subtests

Status Summary

Firefox

OK : 2
PASS: 1077
FAIL: 11

Chrome

OK : 2
PASS: 1066
FAIL: 22

Safari

OK : 2
PASS: 1077
FAIL: 11

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /css/css-values/calc-size/animation/calc-size-interpolation-expansion.html [wpt.fyi]
    • value at progress 0.75 in animation of "height" from "auto" to "calc-size(any, 0px)": FAIL (Chrome: FAIL, Safari: FAIL)
    • value at progress 0.75 in animation of "height" from "0px" to "calc-size(calc-size(min-content, size + 20px), 2 * size)": FAIL (Chrome: FAIL, Safari: FAIL)
    • value at progress 0.75 in animation of "height" from "calc-size(min-content, size * 4)" to "calc-size(calc-size(min-content, size + 20px), 2 * size)": FAIL (Chrome: FAIL, Safari: FAIL)
    • value at progress 0.75 in animation of "width" from "calc-size(fit-content, 20px)" to "calc-size(calc-size(fit-content, 40px), size)": FAIL (Chrome: PASS, Safari: FAIL)
    • value at progress 0.75 in animation of "width" from "calc-size(any, 20px)" to "calc-size(calc-size(fit-content, 40px), size)": FAIL (Chrome: PASS, Safari: FAIL)
    • value at progress 0.75 in animation of "width" from "calc-size(calc-size(any, 30px), 20px)" to "calc-size(calc-size(fit-content, 40px), size)": FAIL (Chrome: PASS, Safari: FAIL)
    • value at progress 0.75 in animation of "width" from "calc-size(fit-content, 20px)" to "calc-size(calc-size(fit-content, 3 * size + 10px), min(size + 20px, 2 * size - 30px) + ((2 * size) + 80px))": FAIL (Chrome: FAIL, Safari: FAIL)
    • value at progress 0.75 in animation of "width" from "calc-size(50%, size)" to "calc-size(calc-size(45%, (2 * size)), size + 20px)": FAIL (Chrome: FAIL, Safari: FAIL)
    • value at progress 0.75 in animation of "width" from "calc-size(40%, size)" to "calc-size(calc-size(10px, (2 * size)), size + 20px)": FAIL (Chrome: FAIL, Safari: FAIL)
    • value at progress 0.75 in animation of "width" from "calc-size(80px, size)" to "calc-size(calc-size(10px, (2 * size)), size + 20px)": FAIL (Chrome: PASS, Safari: FAIL)
    • value at progress 0.75 in animation of "width" from "calc-size(80px, size)" to "calc-size(calc-size(any, 20px), size + 20px)": FAIL (Chrome: PASS, Safari: FAIL)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0d2363e17702 [wpt PR 52097] - Fix extra parens in sum/product nodes., a=testonly https://hg.mozilla.org/integration/autoland/rev/80745eb946c7 [wpt PR 52097] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 21 days ago
Resolution: --- → FIXED
Target Milestone: --- → 139 Branch
You need to log in before you can comment on or make changes to this bug.