W3C home > Mailing lists > Public > www-style@w3.org > November 2009

Re: [gradients] basics

From: Ambrose LI <ambrose.li@gmail.com>
Date: Mon, 9 Nov 2009 01:32:19 -0500
Message-ID: <af2cae770911082232p3bdd06fbhfbaef7a32900d053@mail.gmail.com>
To: news@terrainformatica.com
Cc: "Ph. Wittenbergh" <jk7r-obt@asahi-net.or.jp>, www-style List <www-style@w3.org>
2009/11/9 Andrew Fedoniouk <news@terrainformatica.com>:
>> background: linear-gradient(rgba(255,0,0,0.5), rgba(10,10,10,.25)),
>> url(image.png);
>
> Why not
>
> background: url(image-with-that-gradient-on-top.png);
>
> ?
>
> This trick almost always requires knowledge about that
> image on your side so why not just to produce that image
> upfront?

Because you can't produce an image with a gradient portion with an
unknown width and unknown height, but a non-gradient portion with a
known width and a known height?


-- 
cheers,
-ambrose
Received on Monday, 9 November 2009 06:32:59 GMT

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