- From: Ambrose LI <ambrose.li@gmail.com>
- Date: Mon, 9 Nov 2009 01:32:19 -0500
- 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 UTC