[wpt-sync] Sync PR 41803 - Clamp non-finite inputs to legacy color formats at parse time
Categories
(Core :: CSS Parsing and Computation, task, P4)
Tracking
()
| 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( , , )orrgba( , , , )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: I85602f4bffa046e1fd7652b33f119e468287e258Reviewed-on: https://chromium-review.googlesource.com/4839697
WPT-Export-Revision: c91438bfa1134a5cb74bfbcdf5e6ab5c09262742
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Comment 1•2 years ago
|
||
| Assignee | ||
Comment 2•2 years ago
|
||
| Assignee | ||
Comment 3•2 years ago
|
||
| Assignee | ||
Comment 4•2 years ago
|
||
| Assignee | ||
Comment 5•2 years ago
|
||
Comment 7•2 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/420eb5fa0ec5
https://hg.mozilla.org/mozilla-central/rev/b9c25e59d1f8
Description
•