[Bug 19532] New: Declaration of background-size without background-position in background shorthand should be parsed as invalid

https://www.w3.org/Bugs/Public/show_bug.cgi?id=19532

          Priority: P2
            Bug ID: 19532
          Assignee: dave.null@w3.org
           Summary: Declaration of background-size without
                    background-position in background shorthand should be
                    parsed as invalid
        QA Contact: www-validator-cvs@w3.org
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: info@gtalbot.org
          Hardware: All
            Status: NEW
           Version: CSS Validator
         Component: CSS 3
           Product: CSSValidator

div {background: url("support/60x60-green.png") / 100% auto no-repeat;}

should be parsed as invalid declaration and therefore be rejected, ignored.

The syntax is

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

so, that implies that if <bg-size> is declared, then <position> must be
declared too.

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


URL of test submitted to CSS validator
--------------------------------------

http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.gtalbot.org%2FBrowserBugsSection%2FCSS3Backgrounds%2Fbackground-shorthand-background-size.html&profile=css3&usermedium=all&warning=2&vextwarning=&lang=en

Additional info
---------------
- Firefox 16.0.1 error console and Opera 12.02 error console spot the error and
reports the error.
- Chrome 22.0.1229.94 strikes the declaration suggesting a parsing error too.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Sunday, 14 October 2012 02:43:07 UTC