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
245276
Update CSS Color parsing and serialization to match the current spec
https://bugs.webkit.org/show_bug.cgi?id=245276
Summary
Update CSS Color parsing and serialization to match the current spec
Sam Weinig
Reported
2022-09-16 08:31:51 PDT
CSS Color 4 has made a few parsing and serialization changes we should match: - lch/lab/oklch/oklab all now take percent or number for all the non-hue components (with some new normalization / scaling rules for the percents) - lch/lab/oklch/oklab all now serialize using the numeric form for all non-hue components. Since we now want to serialize using the numeric form, we can also use this opportunity to remove the extra multiplications and divisions by 100 for oklch/oklab that we had to keep lightness as a percent, and just always keep it in the numeric form.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2022-09-16 08:40:45 PDT
<
rdar://problem/100028649
>
Sam Weinig
Comment 2
2022-09-16 09:33:51 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/4419
Tim Nguyen (:ntim)
Comment 3
2022-09-16 10:17:07 PDT
***
Bug 245134
has been marked as a duplicate of this bug. ***
EWS
Comment 4
2022-09-20 12:04:37 PDT
Committed
254688@main
(8913e90d9b69): <
https://commits.webkit.org/254688@main
> Reviewed commits have been landed. Closing PR #4419 and removing active labels.
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