[csswg-drafts] [css-images-4] Do color interpolation hints take up a slot? (#3931)

danburzo has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-images-4] Do color interpolation hints take up a slot? ==
I'm looking at [adding support](https://github.com/Evercoder/culori/pull/77) for color stop positions and interpolation hints to a color library I've been working on, and it's not clear for me from the spec: when [fixing up color stops](https://drafts.csswg.org/css-images-4/#color-stop-fixup), and we spread color stops without a position evenly between those who have one:

> 3. If any __color stop__ still does not have a position, then, __for each run of adjacent color stops without positions__, set their positions so that they are __evenly spaced between the preceding and following color stops with positions__. 

...do the color hints count as _color stops_ in step 3 of the process?

Here's my library's interpretation (top) vs. browser interpretation (bottom) of the following gradient:

```css
linear-gradient(to right, blue, red, 50%, green)
```

<img width="371" alt="Screenshot 2019-05-14 at 15 32 28" src="https://user-images.githubusercontent.com/205375/57698121-82ccb280-765d-11e9-90b1-b81c0a9abb12.png">




Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3931 using your GitHub account

Received on Tuesday, 14 May 2019 12:34:23 UTC