- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Mon, 19 Aug 2013 10:11:43 -0700
- 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(). ~TJ
Received on Monday, 19 August 2013 17:12:29 UTC