[Webkit-unassigned] [Bug 211933] New: CSS color function should allow fallback color
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu May 14 16:26:54 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=211933
Bug ID: 211933
Summary: CSS color function should allow fallback color
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: CSS
Assignee: webkit-unassigned at lists.webkit.org
Reporter: nvasilyev at apple.com
CC: jond at apple.com
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).
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200514/87770f71/attachment.htm>
More information about the webkit-unassigned
mailing list