W3C home > Mailing lists > Public > www-style@w3.org > August 2013

Re: [css-images] color-stop position interpolation

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 19 Aug 2013 10:11:43 -0700
Message-ID: <CAAWBYDC41T8fxOqiQyoDPV-FYh6=2-A-T-7_v45B+so0eQod6A@mail.gmail.com>
To: Dirk Schulze <dschulze@adobe.com>
Cc: www-style list <www-style@w3.org>
On Sun, Aug 18, 2013 at 11:15 PM, Dirk Schulze <dschulze@adobe.com> wrote:
> Hi,
> Since CSS gradients support <length> and <percentage> values for color stops, interpolation between color stops gets more complicated. While there isn't necessarily a problem with interpolation between two <length> values or two <percentage> values, interpolation between <length> and <percentage> does require layout information to calculate the gradient length. Some implementations might not be able to provide the layout information (especially the gradient size) at the time of the interpolation. This seems at least to be the case for WebKit and Blink. The layout information are available on drawing the gradient. Until then, the values must be generic and independent of the gradient size.

No it doesn't.  Interpolating between <length> and
<percentage-based-on-length> should be done with calc().

Received on Monday, 19 August 2013 17:12:29 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:31 UTC