Closed Bug 1863516 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 42992 - Make the css math operation nested after distributing multiplication over sum

Categories

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

task

Tracking

()

RESOLVED FIXED
122 Branch
Tracking Status
firefox122 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Daniil Sakhapov <sakhapov@chromium.org> wrote:

Make the css math operation nested after distributing multiplication over sum

When we distribute multiplication over sum:
A - B * (C + D), we don't know about the minus: A - ..., as it's
B * (C + D) is right part of the A - .... So, when we distribute B,
we end up with A - B * C + B * D, which is incorrect.
Instead, leave the distributed operation nested, e.g.:
A - (B * C + B * D).

Fixed: 1499774
Change-Id: If3158af7b2310b48ef6d5e2b0f3f8ecd37f0eb79
Reviewed-on: https://chromium-review.googlesource.com/5009859
WPT-Export-Revision: ce2eddf18114284bd4b0be40bb3c2b653fbdba37

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c7845446fa54 [wpt PR 42992] - Make the CSS math operation nested after distributing a multiplication over a sum, a=testonly
Test result changes from PR not available.
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a344f87022b4 [wpt PR 42992] - Make the CSS math operation nested after distributing a multiplication over a sum, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch
You need to log in before you can comment on or make changes to this bug.