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

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

From: Dirk Schulze <dschulze@adobe.com>
Date: Fri, 23 Nov 2012 07:47:59 -0800
To: "www-style@w3.org list" <www-style@w3.org>
Message-ID: <1F571CA4-0EFB-4841-8AB2-1E2CB192C258@adobe.com>

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?


[1] http://www.w3.org/TR/css3-background/#the-background
[2] http://jsfiddle.net/WbWSF/
Received on Friday, 23 November 2012 15:48:29 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:23 UTC