Update color-mix() to match latest spec.
Categories
(Core :: CSS Parsing and Computation, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox103 | --- | fixed |
People
(Reporter: emilio, Assigned: emilio)
References
Details
Attachments
(8 files)
|
Bug 1770616 - Update color-mix() syntax to match the current spec. r=#style,#layout-reviewers,barret
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review |
| Assignee | ||
Comment 1•3 years ago
|
||
Test expectation updates for this in the latest patch of the bug.
| Assignee | ||
Comment 2•3 years ago
|
||
It's really piece-wise premultiplied interpolation, with a special-case
for hue, so centralize the implementation.
Depends on D147002
| Assignee | ||
Comment 3•3 years ago
|
||
We had code to convert between these and the latest draft supports them so...
Depends on D147003
| Assignee | ||
Comment 4•3 years ago
|
||
Depends on D147004
| Assignee | ||
Comment 5•3 years ago
|
||
The value to sum is tau, not pi. This was caught by some tests.
Depends on D147005
| Assignee | ||
Comment 6•3 years ago
|
||
This gives us a bit more precision.
Depends on D147006
| Assignee | ||
Comment 7•3 years ago
|
||
I made sure the new fixes are covered. There are still a bunch of failures.
Those can be explained by:
- https://github.com/web-platform-tests/wpt/issues/34158 (tests expecting color-mix() to go away at parse time)
- Off-by-one in the color channels (so float precision errors).
- Unimplemented features like the color() function.
Depends on D147007
Off-by-one in the color channels (so float precision errors).
Or perhaps, truncation rather than rounding?
| Assignee | ||
Comment 10•3 years ago
|
||
Depends on D147005
Comment 11•3 years ago
|
||
Comment 12•3 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/a60b403f434b
https://hg.mozilla.org/mozilla-central/rev/aa3f28383e07
https://hg.mozilla.org/mozilla-central/rev/be40d47e2ecf
https://hg.mozilla.org/mozilla-central/rev/9e47db20f60a
https://hg.mozilla.org/mozilla-central/rev/64a379b5096c
https://hg.mozilla.org/mozilla-central/rev/6b1a2fbdb7b7
https://hg.mozilla.org/mozilla-central/rev/60c4d08d09f0
Description
•