WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
211933
CSS color function should allow fallback color
https://bugs.webkit.org/show_bug.cgi?id=211933
Summary
CSS color function should allow fallback color
Nikita Vasilyev
Reported
2020-05-14 16:26:54 PDT
color: color(display-p3 1 0 0, green) This should show red when display-p3 is supported, and green when it isn't. Instead it shows black. data:text/html;,<body%20style="color:color(display-p3%200%201%200,%20green)">color</body> ---
https://www.w3.org/TR/css-color-4/#color-function
10.1. Specifying profiled colors: the color() function The color() function allows a color to be specified in a particular colorspace (rather than the implicit sRGB colorspace that the other color functions operate in). Its syntax is: color() = color( [ <ident>? [ <number>+ | <string> ] [ / <alpha-value> ]? ]# , <color>? ) The color function takes one or more comma-separated arguments, with each argument specifying a color, and later colors acting as "fallback" if an earlier color can’t be displayed (for example, if the colorspace it specifies hasn’t been loaded yet).
Attachments
[Patch] WIP
(15.54 KB, patch)
2020-05-15 00:48 PDT
,
Devin Rousso
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2020-05-14 16:28:43 PDT
<
rdar://problem/63248585
>
Devin Rousso
Comment 2
2020-05-15 00:48:21 PDT
Created
attachment 399462
[details]
[Patch] WIP Needs tests, but I think I have it working :)
Sam Weinig
Comment 3
2022-02-10 16:04:36 PST
Fallback colors have been removed from the spec.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug