Closed Bug 1851504 Opened 1 year ago Closed 1 year ago

[wpt-sync] Sync PR 41803 - Clamp non-finite inputs to legacy color formats at parse time

Categories

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

task

Tracking

()

RESOLVED FIXED
119 Branch
Tracking Status
firefox119 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Aaron Krajeski <aaronhk@chromium.org> wrote:

Clamp non-finite inputs to legacy color formats at parse time

https://github.com/web-platform-tests/interop/issues/369

All legacy colors parse to rgb( , , ) or rgba( , , , ) with integers
in the range [0, 255] for the color channels and [0, 1] for alpha. Since
the channels are bounded, non finite inputs should resolve to the upper
bound for "infinity" and the lower bound for "-infinity" and "NaN".

Bug: 1478766
Change-Id: I85602f4bffa046e1fd7652b33f119e468287e258

Reviewed-on: https://chromium-review.googlesource.com/4839697
WPT-Export-Revision: c91438bfa1134a5cb74bfbcdf5e6ab5c09262742

Whiteboard: [wptsync downstream] → [wptsync downstream error]
Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Test result changes from PR not available.
Test result changes from PR not available.
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/420eb5fa0ec5 [wpt PR 41803] - Clamp non-finite inputs to legacy color formats at parse time, a=testonly https://hg.mozilla.org/integration/autoland/rev/b9c25e59d1f8 [wpt PR 41803] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 119 Branch
You need to log in before you can comment on or make changes to this bug.