Bug 211931
Summary: | Web Inspector: parse fallback colors in color function | ||
---|---|---|---|
Product: | WebKit | Reporter: | Nikita Vasilyev <nvasilyev> |
Component: | Web Inspector | Assignee: | 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: |
Nikita Vasilyev
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).
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/63247909>
Sam Weinig
Fallback colors have been removed from the spec.