Re: [svgwg] [svg-native] Support out-of-sRGB colors (#666)

SVG2 does not currently support out-of-sRGB colors, because it references CSS Color 3.

* [Specifying fill paint: the ‘fill’ property](https://svgwg.org/svg2-draft/painting.html#SpecifyingFillPaint) says that `fill` takes a value of `<paint>`
* [`<paint>`](https://svgwg.org/svg2-draft/painting.html#SpecifyingPaint) is

```
<paint> = none | <color> | <url> [none | <color>]? | context-fill | context-stroke 
```
* [`<color>`](https://www.w3.org/TR/css3-values/#colors) points to CSS Values 3 which points to CSS Colors 3 color, so sRGB or some syntactic manipulation of sRGB (named colors, hsl, etc)

Sadly [CSS Values 4](https://www.w3.org/TR/css-values-4/#colors) also points to CSS Color 3 but I expect that to change real soon. At which point SVG2 can get out-of-sRGB colors by pointing the `<color>` type at CSS Values 4 (or directly at CSS Color 4).

I suspect that SVG Native will then say that only some subset of those values are supported, like `color(display-p3 r g b)`.

-- 
GitHub Notification of comment by svgeesus
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/666#issuecomment-710200031 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 16 October 2020 16:42:12 UTC