W3C home > Mailing lists > Public > www-style@w3.org > September 2010

Re: [css3-images] Gradients feedback

From: Alan Gresley <alan@css-class.com>
Date: Fri, 10 Sep 2010 20:05:12 +1000
Message-ID: <4C8A02D8.2020402@css-class.com>
To: Boris Zbarsky <bzbarsky@MIT.EDU>
CC: www-style list <www-style@w3.org>
Alan Gresley wrote:
> Boris Zbarsky wrote:
[snip]
>> Testcase that shows that the gradient's intermediate points are not in 
>> fact opaque in either engine:
>>
>> <!DOCTYPE html>
>> <style>
>>   div { width: 100px; height: 100px; }
>>   div.g {
>>         background: -moz-linear-gradient(yellow, transparent);
>>         background: -webkit-gradient(linear, center top, center bottom,
>>                                      from(yellow), to(transparent));
>>   }
>> </style>
>> <div style="background: white"><div class="g"></div></div>
>> <div style="background: red"><div class="g"></div></div>
> 
> 
> Ok, you make a very valid point here concerning a intermediate point 
> which is semi-opaque. I was just understanding what was happening with a 
> gradient from color to transparent before I move on to a gradient from 
> color to color.
[snip]


I have totally misinterpreted your test and my statement above is 
nonsense. A gradient from opaque color to opaque color is fully 
opaque. What do you mean by the gradient's intermediate points are not 
in fact opaque?



-- 
Alan http://css-class.com/

Armies Cannot Stop An Idea Whose Time Has Come. - Victor Hugo
Received on Friday, 10 September 2010 10:05:43 GMT

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