W3C home > Mailing lists > Public > public-css-archive@w3.org > August 2021

Re: [csswg-drafts] [css-images] Add easing functions to color stops (#1332)

From: Lea Verou via GitHub <sysbot+gh@w3.org>
Date: Thu, 12 Aug 2021 11:22:15 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-897557438-1628767334-sysbot+gh@w3.org>
I agree with Tab that it should extrapolate colors rather than extend into neighboring segments. That way, it retains the property that interpolating between A and B only depends on A and B (and parameters like easing function) and not the context. Also, this keeps it consistent with any other interpolation between colors (e.g. in transitions). 

@proimage That wouldn't work for a number of reasons:

1. There can be multiple background images, and it's unclear how to extend this syntax to accommodate for that usably.
2. CSS images (of which gradients are only one special case) are not only accepted in backgrounds, but a number of other properties (`border-image`, masks, cursor, `list-style-image` to name a few).


-- 
GitHub Notification of comment by LeaVerou
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1332#issuecomment-897557438 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 12 August 2021 11:22:17 UTC

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