W3C home > Mailing lists > Public > www-style@w3.org > May 2006

Re: [css3-background] 'background' shorthand

From: Laurens Holst <lholst@students.cs.uu.nl>
Date: Tue, 02 May 2006 21:33:24 +0200
Message-ID: <4457B404.60807@students.cs.uu.nl>
To: www-style@w3.org
David Dorward schreef:
> 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.
>   

I like this idea too.


~Grauw

-- 
Ushiko-san! Kimi wa doushite, Ushiko-san!!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Laurens Holst, student, university of Utrecht, the Netherlands.
Website: www.grauw.nl. Backbase employee; www.backbase.com.




Received on Tuesday, 2 May 2006 19:33:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:45 GMT