WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
324994
Update color serialization for sRGB/HSL/HWB
https://bugs.webkit.org/show_bug.cgi?id=324994
Summary
Update color serialization for sRGB/HSL/HWB
Sam Weinig
Reported
2026-09-23 10:15:46 PDT
There have been a few subtle tweaks to color serialization for sRGB/HSL/HWB colors. For sRGB, any sRGB color with a "none" value now uses the color(srgb ...) serialization. For HSL, any HSL color now uses the hsl() notation when it is nested or the result of a color-mix/rcs expression, and when using the hsl() notation, the saturation and lightness components should be serialized as percentages. For HWB, any HWB color now uses the hwb() notation when it is nested or the result of a color-mix/rcs expression, and when using the hwb() notation, the whiteness and blackness components should be serialized as percentages.
Attachments
Add attachment
proposed patch, testcase, etc.
Sam Weinig
Comment 1
2026-09-23 10:35:38 PDT
The rules of HSL and HWB haven't actually changed as stated in the description. Instead it should read: - For HSL, when using the hsl() notation, the saturation and lightness components should be serialized as percentages. - For HWB, when using the hwb() notation, the whiteness and blackness components should be serialized as percentages.
Sam Weinig
Comment 2
2026-09-23 13:37:24 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/74715
EWS
Comment 3
2026-09-23 21:32:58 PDT
Committed
321758@main
(921c2490e195): <
https://commits.webkit.org/321758@main
> Reviewed commits have been landed. Closing PR #74715 and removing active labels.
Radar WebKit Bug Importer
Comment 4
2026-09-23 21:33:15 PDT
<
rdar://problem/188254602
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug