Re: [css3-background] 'background' shorthand

David Dorward wrote:
> On Tue, May 02, 2006 at 05:08:01PM +0200, Bert Bos wrote:
>> Who can come up with a syntax for the 'background' shorthand that is 
>> unambiguous (of course!), easy to read and easy to remember?
> 
> Take a leaf out of the font property:
> 
> <'background-color'> || <'background-image'> || 
> <'background-repeat'> || <'background-attachment'> || 
> <'background-position'> [ / <'background-size'> ]?] | inherit
> 
> So:
> 
> background: red url('tiedye.png') repeat 0 0 / 100px 100px;
> 
> This has the benefit of being consistant with the solution used to
> solve the problem elsewhere.

The working group as accepted this proposal with the one change
that [ / <'background-size'> ] can appear separate from
<'background-position'> as long as <'background-position'>, if
it appears, occurs before [ / <'background-size'> ]. This syntax
should appear in the next working draft. :)

Thanks~

~fantasai

Received on Monday, 15 May 2006 12:40:47 UTC