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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>75970</bug_id>
          
          <creation_ts>2012-01-10 10:36:50 -0800</creation_ts>
          <short_desc>background-size:100% 100%; Webkit doesn&apos;t spread background image</short_desc>
          <delta_ts>2026-01-01 10:33:26 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>OS X 10.7</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>albo</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>betravis</cc>
    
    <cc>bfulgham</cc>
    
    <cc>fs</cc>
    
    <cc>m.goleb+bugzilla</cc>
    
    <cc>mikelawther</cc>
    
    <cc>shanestephens</cc>
    
    <cc>syoichi</cc>
    
    <cc>tony</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>533178</commentid>
    <comment_count>0</comment_count>
    <who name="">albo</who>
    <bug_when>2012-01-10 10:36:50 -0800</bug_when>
    <thetext>Background: the described operation *succeeds* on:
Box: 13&quot; MBP 2.66GHz Intel Core 2 Duo browsers built-in Safari, Chrome 16.0.912.75, Firefox 10.0, Opera 11.60, Camino 2.1 (1.9.2.24 20111113195207)
Box: iPad2 iOS5 built-in Safari

The operation *fails* on Webkit nightly 5.1.2 (7534.52.7, r104486) [and has failed on several nightlies up until now]

The operation is as follows. The web page is described in CSS with 

html { 

background: #bdafa2 url(&quot;../gradient.svg&quot;) fixed repeat-x;

background-size: 100% 100%;

color: #000;

height: 100%;
 
...

}

&quot;gradient.svg&quot; describes a rectangle 640 wide by 480 high, with a linear gradient containing color stops at top, midway, and bottom.

To repeat, all browsers except Webkit nightly spread the background with &quot;background-size:100% 100%&quot;. Webkit displays a background of width 640[px].

When the &quot;background-size&quot; is removed from the CSS, Webkit displays the SVG, repeated-x (and not spread-y) with the fall-back background-color filling any remaining space.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>537260</commentid>
    <comment_count>1</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2012-01-17 11:59:53 -0800</bug_when>
    <thetext>This was also reported in the Chromium bug tracker: http://code.google.com/p/chromium/issues/detail?id=110195</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>557344</commentid>
    <comment_count>2</comment_count>
    <who name="">albo</who>
    <bug_when>2012-02-15 10:04:12 -0800</bug_when>
    <thetext>As of  (7534.53.10, r107802) this appears to have been resolved.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>557392</commentid>
    <comment_count>3</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2012-02-15 10:52:13 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; As of  (7534.53.10, r107802) this appears to have been resolved.

We should add a layout test to make sure this doesn&apos;t regress in the future.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>557398</commentid>
    <comment_count>4</comment_count>
    <who name="">albo</who>
    <bug_when>2012-02-15 11:02:03 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; As of  (7534.53.10, r107802) this appears to have been resolved.
&gt; 
&gt; We should add a layout test to make sure this doesn&apos;t regress in the future.

Of what would a &quot;layout test&quot; consist? Sample HTML plus CSS plus SVG?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>557413</commentid>
    <comment_count>5</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2012-02-15 11:26:26 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; (In reply to comment #2)
&gt; &gt; &gt; As of  (7534.53.10, r107802) this appears to have been resolved.
&gt; &gt; 
&gt; &gt; We should add a layout test to make sure this doesn&apos;t regress in the future.
&gt; 
&gt; Of what would a &quot;layout test&quot; consist? Sample HTML plus CSS plus SVG?

Yes, that&apos;s basically all they are.

http://trac.webkit.org/wiki/Writing%20Layout%20Tests%20for%20DumpRenderTree
http://trac.webkit.org/wiki/Writing%20Reftests

Other links about contributing to webkit on the wiki:
http://trac.webkit.org/wiki/Writing%20Reftests</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>804860</commentid>
    <comment_count>6</comment_count>
      <attachid>182237</attachid>
    <who name="Bear Travis">betravis</who>
    <bug_when>2013-01-10 18:28:45 -0800</bug_when>
    <thetext>Created attachment 182237
SVG File with two squares</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>804863</commentid>
    <comment_count>7</comment_count>
      <attachid>182239</attachid>
    <who name="Bear Travis">betravis</who>
    <bug_when>2013-01-10 18:36:15 -0800</bug_when>
    <thetext>Created attachment 182239
Failing test file

In the test file, I would expect svg image to resize (as it does in Firefox &amp; Opera).
The behavior seems to be slightly different between Chrome (no scaling), Chrome Canary (no scaling, repeats), and Safari (no scaling, rendering artifacts as window resizes).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>831245</commentid>
    <comment_count>8</comment_count>
    <who name="Bear Travis">betravis</who>
    <bug_when>2013-02-12 14:09:56 -0800</bug_when>
    <thetext>Appears to be working properly in r142638. Will add a test case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>891193</commentid>
    <comment_count>9</comment_count>
    <who name="Michał Gołębiowski-Owczarek">m.goleb+bugzilla</who>
    <bug_when>2013-05-20 08:29:14 -0700</bug_when>
    <thetext>It still doesn&apos;t work, a test case from the Chromium report (compare with Firefox): http://jsfiddle.net/DXT8b/3/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1225382</commentid>
    <comment_count>10</comment_count>
    <who name="Fredrik Söderquist">fs</who>
    <bug_when>2016-09-01 10:36:17 -0700</bug_when>
    <thetext>We&apos;re about to land a fix for this in Blink (https://codereview.chromium.org/2290173005/), don&apos;t know how similar this code is still, but hopefully it hasn&apos;t diverged too much.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1882724</commentid>
    <comment_count>11</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-07-12 16:27:11 -0700</bug_when>
    <thetext>It doesn&apos;t look like we render this test the same was as Firefox and Chrome.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1882725</commentid>
    <comment_count>12</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-07-12 16:27:22 -0700</bug_when>
    <thetext>&lt;rdar://problem/96916928&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2168827</commentid>
    <comment_count>13</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2026-01-01 10:33:26 -0800</bug_when>
    <thetext>(In reply to Fredrik Söderquist from comment #10)
&gt; We&apos;re about to land a fix for this in Blink
&gt; (https://codereview.chromium.org/2290173005/), don&apos;t know how similar this
&gt; code is still, but hopefully it hasn&apos;t diverged too much.

It is fixed with 305043@main</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>182237</attachid>
            <date>2013-01-10 18:28:45 -0800</date>
            <delta_ts>2013-01-10 18:28:45 -0800</delta_ts>
            <desc>SVG File with two squares</desc>
            <filename>squares.svg</filename>
            <type>image/svg+xml</type>
            <size>220</size>
            <attacher name="Bear Travis">betravis</attacher>
            
              <data encoding="base64">PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB4bWxucz0naHR0cDov
L3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAxMDAgMTAwJz4KPHJlY3QgeD0nMCcg
eT0nMCcgd2lkdGg9JzUwJyBoZWlnaHQ9JzUwJyBmaWxsPScjZjAwJy8+CjxyZWN0IHg9JzUwJyB5
PSc1MCcgd2lkdGg9JzUwJyBoZWlnaHQ9JzUwJyBmaWxsPScjMGYwJy8+Cjwvc3ZnPg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>182239</attachid>
            <date>2013-01-10 18:36:15 -0800</date>
            <delta_ts>2013-01-10 18:36:15 -0800</delta_ts>
            <desc>Failing test file</desc>
            <filename>test.html</filename>
            <type>text/html</type>
            <size>277</size>
            <attacher name="Bear Travis">betravis</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8aGVhZD4KPHN0eWxlPgpodG1sLCBib2R5IHsKCXdpZHRo
OiAxMDAlOwoJaGVpZ2h0OiAxMDAlOwp9CmJvZHkgewoJYmFja2dyb3VuZDogdXJsKCdodHRwczov
L2J1Zy03NTk3MC1hdHRhY2htZW50cy53ZWJraXQub3JnL2F0dGFjaG1lbnQuY2dpP2lkPTE4MjIz
NycpOwoJYmFja2dyb3VuZC1zaXplOiAxMDAlIDEwMCU7CgliYWNrZ3JvdW5kLXJlcGVhdDogbm8t
cmVwZWF0Owp9Cjwvc3R5bGU+CjwvaGVhZD4KPGJvZHk+CjwvYm9keT4KPC9odG1sPg==
</data>

          </attachment>
      

    </bug>

</bugzilla>