[css-color] When resolving relative colors there should be no gamut mapping/clipping.
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox135 | --- | fixed |
People
(Reporter: tlouw, Assigned: tlouw)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
When converting from an out of gamut origin color, there should be no clipping or mapping. Example:
color(from color(display-p3 1 0 0) srgb r g b)
should not resolve to color(srgb 1 0 0)
, which is clipped. The result should be color(srgb 1.09 -0.22 -0.15)
.
This should also solve issues will converting to origins and back, e.g. color(from rgb(from color(xyz-d50 0.99 0.88 0.77) r g b) xyz-d50 x y z)
.
Comment 1•4 months ago
|
||
Per extended commit message in https://hg.mozilla.org/mozilla-central/rev/b0ef844bc744 , I believe this bug is responsible for our test failures in https://wpt.fyi/results/css/css-color/parsing/relative-color-out-of-gamut.html?label=experimental&label=master
Assignee | ||
Comment 2•2 months ago
|
||
When the result of a resolved relative color is in the color(srgb ..)
syntax, make sure not to clamp the components during the calculations.
Updated•2 months ago
|
Comment 4•2 months ago
|
||
bugherder |
Description
•