Implement color() function from CSS colors level 4
Categories
(Core :: CSS Parsing and Computation, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox111 | --- | fixed |
People
(Reporter: ntim, Assigned: tlouw)
References
(Blocks 7 open bugs, )
Details
(Keywords: dev-doc-complete, parity-safari)
Attachments
(1 file)
(deleted),
text/x-phabricator-request
|
Details |
Comment 1•10 years ago
|
||
Updated•10 years ago
|
Comment 2•8 years ago
|
||
Updated•8 years ago
|
Comment 3•8 years ago
|
||
Comment 4•8 years ago
|
||
Updated•8 years ago
|
Comment 6•7 years ago
|
||
Updated•5 years ago
|
Webkit has added support for Display-P3 color back in 2016 for the CSS Color Module Level 4.
https://webkit.org/blog/10042/wide-gamut-color-in-css-with-display-p3/
Does Mozilla also support this?
Comment 8•5 years ago
|
||
(In reply to Nomis101 from comment #7)
Webkit has added support for Display-P3 color back in 2016 for the CSS Color Module Level 4.
https://webkit.org/blog/10042/wide-gamut-color-in-css-with-display-p3/
Does Mozilla also support this?
No. I think Mozilla doesn't support this yet (wpt.fyi, parser).
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Comment 9•3 years ago
|
||
Unassign myself now because I'm not planning to do this in this half year.
Updated•3 years ago
|
Comment 10•3 years ago
|
||
The @color-profile part of the color() function was recently moved by CSSWG decision from CSS Color 4 to CSS Color 5.
So color() in CSS Color 4 is now just the predefined rgb spaces like display-p3, rec2020 and so on. It has been implemented in WebKit (and shipped in Safari 15, updating their previous minimal implementation which was display-p3 only).
Hopefully that change scopes it into a more achievable goal for Gecko?
Color modification (relative color syntax, color-mix()) is also in Color 5.
Updated•3 years ago
|
Assignee | ||
Updated•2 years ago
|
Updated•2 years ago
|
Comment 11•2 years ago
|
||
Noting that this is now implemented in Chrome 108 under the experimental flag, in addition to having shipped in Safari.
https://wpt.fyi/results/css/css-color?label=master&label=experimental&aligned&view=subtest
Assignee | ||
Comment 12•2 years ago
|
||
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Comment 13•2 years ago
|
||
Comment 14•2 years ago
|
||
bugherder |
Comment 15•2 years ago
|
||
Documentation changes for this are being tracked in the following issue on GitHub: https://github.com/mdn/content/issues/24395
Updated•2 years ago
|
Description
•