Bug 211931 - Web Inspector: parse fallback colors in color function
Summary: Web Inspector: parse fallback colors in color function
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on: 211933
Blocks:
  Show dependency treegraph
 
Reported: 2020-05-14 16:10 PDT by Nikita Vasilyev
Modified: 2022-02-10 16:05 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikita Vasilyev 2020-05-14 16:10:23 PDT
Web Inspector shows "Unsupported property value" for

    color(display-p3 1 0.5 0.6, pink)

"pink" here is a fallback value. Web Inspector should parse it as a valid color.

---

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).
Comment 1 Radar WebKit Bug Importer 2020-05-14 16:10:33 PDT
<rdar://problem/63247909>
Comment 2 Sam Weinig 2022-02-10 16:05:05 PST
Fallback colors have been removed from the spec.