W3C home > Mailing lists > Public > public-css-archive@w3.org > April 2019

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

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Tue, 16 Apr 2019 00:50:59 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-483469966-1555375858-sysbot+gh@w3.org>
One particular example I would see as relevant is the fact that the midpoint-based interpolation is *not* symmetric around the center point. That is, a gradient like `linear-gradient(blue, 10%, white, 90%, blue)` does *not* have the first and second halves look like mirror images of each other. Using cubic-bezier(), on the other hand, would let you produce symmetrical results fairly easily.

(The best way to make a symmetrical gradient with midpoints is to make *two* gradients, each half-size, and pointing in opposite directions. That's annoying, obviously.)

GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1332#issuecomment-483469966 using your GitHub account
Received on Tuesday, 16 April 2019 00:51:00 UTC

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