W3C home > Mailing lists > Public > www-style@w3.org > March 2010

RE: [css3-background] background-shorthand and its background-clip side-effect

From: Sylvain Galineau <sylvaing@microsoft.com>
Date: Thu, 4 Mar 2010 20:16:23 +0000
To: fantasai <fantasai.lists@inkedblade.net>, Brad Kemper <brad.kemper@gmail.com>
CC: "www-style@w3.org" <www-style@w3.org>, Arron Eicholz <Arron.Eicholz@microsoft.com>, Brian Manthos <brianman@microsoft.com>
Message-ID: <045A765940533D4CA4933A4A7E32597E10D6D7A5@TK5EX14MBXC111.redmond.corp.microsoft.com>
> From: fantasai [mailto:fantasai.lists@inkedblade.net]


> That's overkill. There's no reason to involve a slash to address
> Sylvain's
> concern about being able to set both. You just put
> 
>    [border-box|padding-box|content-box]{0,2}
> 
> in the background shorthand. Zero occurrences sets both background-clip
> and background-origin to their initial values. One occurrence sets both
> to the given value. Two (immediately adjacent) occurrences sets the
> first
> to origin and the second to clip (because you position before you clip).
> 
> This is much more consistent with CSS syntax elsewhere.

I agree that this seems much more consistent with existing CSS practice and authors'
expectations.
Received on Thursday, 4 March 2010 20:17:07 GMT

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