Bug 273033 - When interpolating colors, analogous components must be carried forward
Summary: When interpolating colors, analogous components must be carried forward
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Sam Weinig
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2024-04-20 10:10 PDT by Sam Weinig
Modified: 2024-05-04 13:27 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam Weinig 2024-04-20 10:10:00 PDT
Since implementation support for missing components there has been a change to the spec to require "analogous components" to be "carried forward". (see https://www.w3.org/TR/css-color-4/#interpolation-missing)

Essentially, if you are interpolating a hsl() color with a lch() color, in the oklch() color space, a missing hue value in in either the hsl() or lch() color should be respected.
Comment 1 Radar WebKit Bug Importer 2024-04-27 10:10:15 PDT
<rdar://problem/127170141>
Comment 2 Sam Weinig 2024-05-04 10:53:04 PDT
Pull request: https://github.com/WebKit/WebKit/pull/28146
Comment 3 EWS 2024-05-04 13:27:20 PDT
Committed 278379@main (4223b7f3eb55): <https://commits.webkit.org/278379@main>

Reviewed commits have been landed. Closing PR #28146 and removing active labels.