W3C home > Mailing lists > Public > www-style@w3.org > November 2012

Re: [css3-background] unbound background-clip from -origin in background shorthand

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 23 Nov 2012 08:57:27 -0800
Message-ID: <CAAWBYDBGGffsdxFt8GnQJUD=WD1Kdb8c9RifFF1Gay06+LeYWg@mail.gmail.com>
To: Dirk Schulze <dschulze@adobe.com>
Cc: "www-style@w3.org list" <www-style@w3.org>
On Fri, Nov 23, 2012 at 7:47 AM, Dirk Schulze <dschulze@adobe.com> wrote:
> The current syntax of the shorthand requires browsers to bound the two property values for background-clip and background-origin[1]:
>
>         <bg-layer> = <bg-image> || <position> [ / <bg-size> ]? || <repeat-style> || <attachment> || <box>{1,2}
>
> Making a short test, it seems that most browsers (with exception of FF) support to have a different order[2]:
>
>         background: border-box none content-box;
>
> The browser stay consistent with the wording: "If two values are present, then the first sets ‘background-origin’ and the second ‘background-clip’."
>
> Should css3-backgrounds be lees restrictive?

If IE, Opera, and WebKit all do it, then it seems reasonable to relax
the grammar.

~TJ
Received on Friday, 23 November 2012 16:58:18 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:03 GMT