Closed
Bug 1817035
Opened 1 year ago
Closed 1 year ago
Change cssparser to return HSL/HWB values in stead of converting to RGB
Categories
(Core :: CSS Parsing and Computation, task)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
People
(Reporter: tlouw, Unassigned)
References
Details
The cssparser is already converting hsl()
and hwb()
values to rgb()
. This is convenient because the spec says hsl/hwb serializes to rgb.
Now that we support color spaces in Gecko, that conversion is not needed any more and should be removed, because now we actually use colors in hsl/hwb color spaces, e.g. color mixing.
If you have color-mix(in hsl, hsl(...), hsl(...))
then really what you get in Gecko is color-mix(in hsl, rgb(...), rgb(...))
so we have to convert both rgb values to hsl first and then do the mix, where we can avoid that conversion if we have the original colors in hsl.
Of course serialization will still be to rgb.
Reporter | ||
Updated•1 year ago
|
Blocks: css-color-4
Reporter | ||
Comment 1•1 year ago
|
||
This change was landed as part of bug 1812545.
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•