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

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

From: Brian Manthos <brianman@microsoft.com>
Date: Fri, 12 Aug 2011 05:28:26 +0000
To: Shane Stephens <shans@google.com>
CC: Tab Atkins Jr. <jackalmage@gmail.com>, www-style list <www-style@w3.org>
Message-ID: <9710FCC2E88860489239BE0308AC5D1711C3F5@TK5EX14MBXC264.redmond.corp.microsoft.com>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:43 GMT