W3C home > Mailing lists > Public > public-css-archive@w3.org > May 2017

Re: [csswg-drafts] [css-images] Add easing functions to color stops

From: Andreas Larsen via GitHub <sysbot+gh@w3.org>
Date: Mon, 08 May 2017 21:32:07 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-299997101-1494279126-sysbot+gh@w3.org>
> so an easing function on the first color stop would be ignored (though not invalid)

Just out of curiosity then why no make it invalid on the first color stop?

I'm also not sure what would be gained by making the order of easing and distance flexible. I think it could end up making the gradient function harder to read so I'd vote for
```
<color-stop> = <color> <length-percentage>? <timing-function>?
```

but I think you @AmeliaBR make some really interesting points too. Just to understand the syntax you're proposing it would be something like 

```
linear-gradient(black, ease-out-sine, white)
```
right?

-- 
GitHub Notification of comment by larsenwork
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1332#issuecomment-299997101 using your GitHub account
Received on Monday, 8 May 2017 21:32:14 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:12 UTC