- From: L. David Baron <dbaron@dbaron.org>
- Date: Thu, 19 Jan 2006 18:23:11 -0800
- To: www-style@w3.org
- Message-ID: <20060120022311.GA11029@ridley.dbaron.org>
On Thursday 2006-01-19 17:33 -0800, Andrew Fedoniouk wrote: > > ----- Original Message ----- > From: "L. David Baron" <dbaron@dbaron.org> > > > http://dbaron.org/css/css-vg/ > >(see section 2, Gradients and Patterns). > > David, is this > > @fill logoback { > gradient: 90deg red blue; > } > > #logo { > background-color: fill(logoback); > } > > in principle better than function style defintion like: > > background-draw-method: > gradient-fill( angle: 90deg, color1: red, color2: blue ); > > ? If yes than why in your opinion? It has at least the following advantages: * it is reusable across all drawing operations, not just backgrounds, without an explosion of new properties * it is reusable across multiple CSS rules * it allows multiple layers (which is what started this discussion in the first place) * it allows fallback if required images fail to load -David -- L. David Baron <URL: http://dbaron.org/ > Technical Lead, Layout & CSS, Mozilla Corporation
Received on Friday, 20 January 2006 02:26:29 UTC