Closed Bug 1830268 Opened 1 year ago Closed 1 year ago

Gamut mapping does not appear to be happening

Categories

(Core :: CSS Parsing and Computation, defect)

Firefox 112
x86_64
Windows 10
defect

Tracking

()

RESOLVED DUPLICATE of bug 1847503

People

(Reporter: methanal, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/112.0

Steps to reproduce:

Toggled the pref layout.css.more_color_4.enabled to get access to the new colour notations.

Actual results:

While the new notations certainly work, out-of-gamut colours are wildly wrong. It appears that the displayed colours are simply clipped to the RGB range.

Expected results:

Colours outside the sRGB gamut should be mapped using CSS gamut mapping as specified in CSS Color Module Level 4.

See Also: → css-color-4
Component: Untriaged → CSS Parsing and Computation
OS: Unspecified → Windows 10
Product: Firefox → Core
Hardware: Unspecified → x86_64

The severity field is not set for this bug.
:boris, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(boris.chiou)

Hi Herbert, do you have any simple example or test case for this?

Flags: needinfo?(boris.chiou) → needinfo?(methanal)

Hi Tiaan, would you mind checking this bug?

Flags: needinfo?(tlouw)

Right now we are not mapping out of bounds colors. They are indeed just clipped. Gamut mapping is tracked in bug 1626624.

Marking this one as a duplicate.

Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1626624
Flags: needinfo?(tlouw)
Resolution: --- → DUPLICATE
Flags: needinfo?(methanal)
Duplicate of bug: 1847503
No longer duplicate of bug: 1626624
You need to log in before you can comment on or make changes to this bug.