RE: [css3-images] Order of color-stop fixup

It seems unnecessary and error-prone to do the interpolation twice, in steps (1) and (3).

From: Shane Stephens [mailto:shans@google.com]
Sent: Thursday, August 11, 2011 9:18 PM
To: Brian Manthos
Cc: Tab Atkins Jr.; www-style list
Subject: Re: [css3-images] Order of color-stop fixup

...
Interpolating container-sensitive properties is still possible, it just takes more work. I outlined how to do it in my previous email, but here it is again:
(1) store non-resolved start and end values as part of the interpolated result (e.g. [cover 30%, contain 70%] is the result of a 30% interpolation between a cover gradient and a contain gradient)
(2) resolve start and end values against current size of container
(3) interpolate resolved values
...

Received on Friday, 12 August 2011 05:46:54 UTC