Re: Gradient syntax proposal

Sent from my iPhone

On Aug 13, 2009, at 7:30 PM, Andrew Fedoniouk  
<news@terrainformatica.com> wrote:

> Tab Atkins Jr. wrote:
>> Just linear gradients for now:
>> http://www.xanthir.com/document/document.php? 
>> id= 
>> d65df9d10442ef96c2dfe5e1d7bbebf7aa42f2bcf24e68fc3777c4b484fa8a4ce55fed2189cac20ccad8686127f4c08917c4ca8b7614e9f89c2a950ec083a9c6
 

>> ~TJ
>
> So what exactly is this gradient? Is it such a color or is it rather  
> such an image?

Image.

> Consider this case:
>
> div.first
> {
>  background: linear-gradient(top bottom, yellow, blue);
>  background-color: green;
> }
>
> div.second
> {
>  background: linear-gradient(top bottom, yellow, blue);
>  background-image: url(something.png);
> }
>
> <div .first>Any gradient here?</div>

Yes

> <div .second>And here?</div>

No

>
> I suspect it is a color or more precise something like background- 
> fill, correct?

No.

> And why just not:
> background-image: url(gradient.svg);
> at the end of ends?

Because a lot of us would rather do this simply in CSS, without having  
to import SVGs, and perhaps animate or change dynamically.


>
> -- 
> Andrew Fedoniouk.
>
> http://terrainformatica.com
>

Received on Friday, 14 August 2009 02:43:36 UTC