Closed Bug 1770616 Opened 3 years ago Closed 3 years ago

Update color-mix() to match latest spec.

Categories

(Core :: CSS Parsing and Computation, task)

task

Tracking

()

RESOLVED FIXED
103 Branch
Tracking Status
firefox103 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(8 files)

No description provided.

Test expectation updates for this in the latest patch of the bug.

It's really piece-wise premultiplied interpolation, with a special-case
for hue, so centralize the implementation.

Depends on D147002

We had code to convert between these and the latest draft supports them so...

Depends on D147003

The value to sum is tau, not pi. This was caught by some tests.

Depends on D147005

This gives us a bit more precision.

Depends on D147006

I made sure the new fixes are covered. There are still a bunch of failures.

Those can be explained by:

Depends on D147007

Off-by-one in the color channels (so float precision errors).

Or perhaps, truncation rather than rounding?

Blocks: 1770829

Depends on D147005

Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a60b403f434b Update color-mix() syntax to match the current spec. r=barret https://hg.mozilla.org/integration/autoland/rev/aa3f28383e07 Make the color interpolation code more generic. r=barret https://hg.mozilla.org/integration/autoland/rev/be40d47e2ecf Implement more color-mix() color-spaces. r=barret https://hg.mozilla.org/integration/autoland/rev/9e47db20f60a Fix color-mix() percentage normalization. r=barret https://hg.mozilla.org/integration/autoland/rev/64a379b5096c Fix hue adjustment to match the spec. r=barret https://hg.mozilla.org/integration/autoland/rev/6b1a2fbdb7b7 Do hue interpolations in degrees rather than radians. r=barret https://hg.mozilla.org/integration/autoland/rev/60c4d08d09f0 Update test expectations. r=barret
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: