<?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>17744</bug_id>
          
          <creation_ts>2008-03-10 07:11:31 -0700</creation_ts>
          <short_desc>SVG opened in object does not honor transparent background</short_desc>
          <delta_ts>2009-07-15 17:42:02 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>SVG</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>10687</dup_id>
          
          <bug_file_loc>http://burningbird.net</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Shelley Powers">shelleyp</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>c.1</cc>
    
    <cc>heycam</cc>
    
    <cc>jeffschiller</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>73192</commentid>
    <comment_count>0</comment_count>
    <who name="Shelley Powers">shelleyp</who>
    <bug_when>2008-03-10 07:11:31 -0700</bug_when>
    <thetext>If you open an SVG file using the object element, and the element has a transparent background (no background color is specified for the SVG), WebKit/Safari paints the background white. I&apos;ve tried to set the background to transparent in the SVG, in the object, nothing works.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77483</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2008-04-13 22:56:57 -0700</bug_when>
    <thetext>I just saw another bug like this tonight, but they were using wmode=&quot;transparent&quot; to get this behavior.  I wonder if the same would work for you.  (the wmode bug did not reproduce for me, I think they were using an SVG plugin, instead of WebKit&apos;s built-in SVG support).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77553</commentid>
    <comment_count>2</comment_count>
    <who name="Shelley Powers">shelleyp</who>
    <bug_when>2008-04-14 07:15:08 -0700</bug_when>
    <thetext>The page has a background color, which was hidden with both Safari (including Webkit) and Opera, but not with Firefox 3. I put a background on the object itself to fix.

To demonstrate, I added the two SVG elements as objects, removed any background color and the following snapshot shows what the page looks like in Webkit:

&lt;a href=&quot;http://skitch.com/shelleyp/jxta/burningbird&quot;&gt;&lt;img src=&quot;http://img.skitch.com/20080414-t1u3fmn1kspnhr6befpanwppw3.preview.jpg&quot; alt=&quot;Burningbird&quot; /&gt;&lt;/a&gt;

However, same page with Firefox:

&lt;a href=&quot;http://skitch.com/shelleyp/jx1d/burningbird&quot;&gt;&lt;img src=&quot;http://img.skitch.com/20080414-c7792ac8j22nkxniajgkab5ey8.preview.jpg&quot; alt=&quot;Burningbird&quot; /&gt;&lt;/a&gt;

What&apos;s interesting, though, is that I used wget to create a &lt;a href=&quot;http://burningbird.net/svgerror/burningbird.net&quot;&gt;snapshot of the page&lt;/a&gt; to preserve the bug, but Safari/Webkit now picks up the background color. The only difference? One site is dynamic, the other is a static web page. 

I&apos;ll leave the front page up for a time so you can see the bug, but I can&apos;t preserve the web page indefinitely. Hopefully the images will be enough to show how to recreate the bug.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77555</commentid>
    <comment_count>3</comment_count>
    <who name="Shelley Powers">shelleyp</who>
    <bug_when>2008-04-14 07:20:08 -0700</bug_when>
    <thetext>Correction, it works when the page is served up as HTML, not when the page is served up as XHTML. That&apos;s the difference.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77557</commentid>
    <comment_count>4</comment_count>
    <who name="Shelley Powers">shelleyp</who>
    <bug_when>2008-04-14 07:29:04 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; Correction, it works when the page is served up as HTML, not when the page is
&gt; served up as XHTML. That&apos;s the difference.
&gt; 

Now that I know the exact problem, I&apos;ve created static sites to serve for confirmation of this bug. The first site, http://burningbird.net/svgerror/burningbird.net/, serves the page up as HTML and Safari/Webkit processes the background color properly. The second site, at http://burningbird.net/svgerror/xburningbird.net/, serves the page up as XHTML, and the background color is not coming through. That&apos;s the only difference between the two pages. 

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128198</commentid>
    <comment_count>5</comment_count>
    <who name="CPK Smithies">c.1</who>
    <bug_when>2009-06-25 09:39:42 -0700</bug_when>
    <thetext>Confirm this problem exists under MacOS only, glaringly inconsistent with all other browsers including webkit under Windows, tested unaffected by mime type with which the page is served, problem exhibited by

http://grainger-quartet.co.uk/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128376</commentid>
    <comment_count>6</comment_count>
    <who name="CPK Smithies">c.1</who>
    <bug_when>2009-06-25 20:28:31 -0700</bug_when>
    <thetext>This bug also occurs in the Linux 32-bit Ubuntu build of the chromium-browser, webkit build 531.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>131845</commentid>
    <comment_count>7</comment_count>
      <attachid>32775</attachid>
    <who name="Cameron McCormack (:heycam)">heycam</who>
    <bug_when>2009-07-15 04:15:16 -0700</bug_when>
    <thetext>Created attachment 32775
Small test case

Attachment has a smaller test case.  Shows a 100x100 green rectangle in Firefox 3.5 and Opera 10a, shows plain white in WebKit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>132107</commentid>
    <comment_count>8</comment_count>
    <who name="Cameron McCormack (:heycam)">heycam</who>
    <bug_when>2009-07-15 17:42:02 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 10687 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>32775</attachid>
            <date>2009-07-15 04:15:16 -0700</date>
            <delta_ts>2009-07-15 04:15:16 -0700</delta_ts>
            <desc>Small test case</desc>
            <filename>url.txt</filename>
            <type>text/plain</type>
            <size>37</size>
            <attacher name="Cameron McCormack (:heycam)">heycam</attacher>
            
              <data encoding="base64">aHR0cDovL21jYy5pZC5hdS90ZW1wLzIwMDkvc3ZnYmcuaHRtbA==
</data>

          </attachment>
      

    </bug>

</bugzilla>