Closed Bug 1811605 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 38092 - Set epislon to 1 for integer colors

Categories

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

task

Tracking

()

RESOLVED FIXED
111 Branch
Tracking Status
firefox111 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Aaron Krajeski <aaronhk@chromium.org> wrote:

Set epislon to 1 for integer colors

rgb() and rgba() legacy color formats output their colors in integers.
This CL allows for colorValuesAlmostEqual to supply two different
epsilons, one for new color formats (which include decimals) and
the legacy formats that don't.

Bug: 1399566
Change-Id: If68ddc7e6fc499f443fecef9f8b89a0048eb8927

Reviewed-on: https://chromium-review.googlesource.com/4185117
WPT-Export-Revision: a430ccf995206508c05b4d8d69d0b6ea288980b0

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core
Test result changes from PR not available.
Test result changes from PR not available.
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fcc1998bca38 [wpt PR 38092] - Set epislon to 1 for integer colors, a=testonly https://hg.mozilla.org/integration/autoland/rev/a6823085c349 [wpt PR 38092] - Update wpt metadata, a=testonly
Test result changes from PR not available.
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 111 Branch
You need to log in before you can comment on or make changes to this bug.