<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>19532</bug_id>
          
          <creation_ts>2012-10-14 02:43:06 +0000</creation_ts>
          <short_desc>Declaration of background-size without background-position in background shorthand should be parsed as invalid</short_desc>
          <delta_ts>2012-10-23 10:30:38 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSSValidator</product>
          <component>CSS 3</component>
          <version>CSS Validator</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.gtalbot.org%2FBrowserBugsSection%2FCSS3Backgrounds%2Fbackground-shorthand-background-size.html&amp;profile=css3&amp;usermedium=all&amp;warning=2&amp;vextwarning=&amp;lang=en</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gérard Talbot">info</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>76225</commentid>
    <comment_count>0</comment_count>
    <who name="Gérard Talbot">info</who>
    <bug_when>2012-10-14 02:43:06 +0000</bug_when>
    <thetext>div {background: url(&quot;support/60x60-green.png&quot;) / 100% auto no-repeat;}

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

The syntax is

&lt;final-bg-layer&gt; = &lt;bg-image&gt; || &lt;position&gt; [ / &lt;bg-size&gt; ]? ||
&lt;repeat-style&gt; || &lt;attachment&gt; || &lt;box&gt;{1,2} || &lt;&apos;background-color&apos;&gt;

so, that implies that if &lt;bg-size&gt; is declared, then &lt;position&gt; 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&amp;profile=css3&amp;usermedium=all&amp;warning=2&amp;vextwarning=&amp;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76945</commentid>
    <comment_count>1</comment_count>
    <who name="Yves Lafon">ylafon</who>
    <bug_when>2012-10-23 10:30:38 +0000</bug_when>
    <thetext>The validator was implementing the grammar of a previous draft.
Fixed now, thanks for the report !</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>