Bug 245276
| Summary: | Update CSS Color parsing and serialization to match the current spec | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Sam Weinig <sam> |
| Component: | CSS | Assignee: | Sam Weinig <sam> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | karlcow, ntim, webkit-bug-importer |
| Priority: | P2 | Keywords: | BrowserCompat, InRadar |
| Version: | Other | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Sam Weinig
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
<rdar://problem/100028649>
Sam Weinig
Pull request: https://github.com/WebKit/WebKit/pull/4419
Tim Nguyen (:ntim)
*** Bug 245134 has been marked as a duplicate of this bug. ***
EWS
Committed 254688@main (8913e90d9b69): <https://commits.webkit.org/254688@main>
Reviewed commits have been landed. Closing PR #4419 and removing active labels.