Bug 211931

Summary: Web Inspector: parse fallback colors in color function
Product: WebKit Reporter: Nikita Vasilyev <nvasilyev>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal CC: inspector-bugzilla-changes, jond, sam, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Bug Depends on: 211933    
Bug Blocks:    

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.