Closed Bug 1860442 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 42676 - Tests for round(), mod(), and rem() that has a percentage only for one value

Categories

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

task

Tracking

()

RESOLVED FIXED
121 Branch
Tracking Status
firefox121 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Roman Komarov <kizmarh@ya.ru> wrote:

Tests for round(), mod(), and rem() that has a percentage only for one value

I noticed a bug in Safari (regular and TP) in how it handles mixed units for round(), mod() and rem() that include a %, but only when it does include it for one value (only A or B, not both as in the above tests).

First reduced in this CodePen, decided to submit it as my first WPT test :)

Current workaround: add 0% to the other part so both contain px and %.

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8f643ea72601 [wpt PR 42676] - Tests for round(), mod(), and rem() that has a percentage only for one value, a=testonly
Test result changes from PR not available.
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch
You need to log in before you can comment on or make changes to this bug.