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

Correct, you have specified two constraints that are conflicting.  The current spec chooses to respect the even distribution over the distribution length, since satisfying both is not possible.

-Brian

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


Example 1:
linear-gradient(red -100%, white, green, black, blue)

Example 2:
linear-gradient(black, red -100%, white, green, black, blue)

Example 1 ED 5.4 current:
linear-gradient(red -100%, white -50%, green 0%, black 50%, blue 100%)

Example 2 ED 5.4 current:
linear-gradient(black 0%, red 0%, white 25%, green 50%, black 75%, blue 100%)

Why has adding a black stop before my explicitly specified red stop caused all of my evenly spaced stops to shuffle up?  I asked for them to be spaced between -100% and 100%.

Received on Friday, 12 August 2011 05:28:56 UTC