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

[CSS3] Question on shorthand background and background-size

From: Gérard Talbot <www-style@gtalbot.org>
Date: Sat, 13 Oct 2012 21:21:35 -0400
Message-ID: <f2713f7fa0fe4cbdbcdfcc4edaff0ed4.squirrel@ed-sh-cp3.entirelydigital.com>
To: "Public W3C www-style mailing list" <www-style@w3.org>
Hello,

Is this test correct:

http://www.gtalbot.org/BrowserBugsSection/CSS3Backgrounds/background-shorthand-background-size.html

The same test, while using subproperties and not shorthand, is rendered
differently in Firefox 16.0.1, Chrome 22.0.1229.94, Opera 12.02, Konqueror
4.9.2:

http://www.gtalbot.org/BrowserBugsSection/CSS3Backgrounds/background-size.html

If 'background-position' is not explicitly set in the background shorthand
form, then it should default to initial value which is '0% 0%'.

Syntax is:

<final-bg-layer> = <bg-image> || <position> [ / <bg-size> ]? ||
<repeat-style> || <attachment> || <box>{1,2} || <'background-color'>

where
"
A double bar (||) separates two or more options: one or more of them must
occur, in any order.
"

So why are these 2 tests rendered differently in those 4 browsers?

Am I missing something here?

Gérard
-- 
CSS 2.1 Test suite RC6, March 23rd 2011
http://test.csswg.org/suites/css2.1/20110323/html4/toc.html

Contributions to CSS 2.1 test suite
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/

Web authors' contributions to CSS 2.1 test suite
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/web-authors-contributions-css21-testsuite.html
Received on Sunday, 14 October 2012 01:22:06 GMT

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