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

On 03/03/2010 11:20 PM, Brad Kemper wrote:
>
> I can see these points. The way I'd like to see them addressed ... single slash ...

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.

~fantasai

Received on Thursday, 4 March 2010 08:06:48 UTC