<?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>22986</bug_id>
          
          <creation_ts>2008-12-24 14:56:36 -0800</creation_ts>
          <short_desc>Loading external SVG using &lt;image&gt; doesn&apos;t have transparent background</short_desc>
          <delta_ts>2011-06-02 06:48:17 -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>525.x (Safari 3.1)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>18228</dup_id>
          
          <bug_file_loc></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="Dustin">dustin</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>chikada</cc>
    
    <cc>jeffschiller</cc>
    
    <cc>nwtour</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>103386</commentid>
    <comment_count>0</comment_count>
    <who name="Dustin">dustin</who>
    <bug_when>2008-12-24 14:56:36 -0800</bug_when>
    <thetext>If you load an external SVG into you new SVG file like so,
&lt;image id=&quot;cloud_image&quot; xlink:href=&quot;/svg/weather/cloudy.svg&quot; width=&quot;200&quot; height=&quot;200&quot; x=&quot;0&quot; y=&quot;0&quot;/&gt;

Then the background of the external SVG will be white, not transparent like it should be. However I&apos;ve noticed if I remove the width, height, and viewbox attributes from the external SVG file, the background will become transparent but of course sizing wil not be correct. Thus it makes layering multiple SVG images ontop of one another every difficult because they would all have to be contained within one file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>173204</commentid>
    <comment_count>1</comment_count>
      <attachid>45160</attachid>
    <who name="Konstantin Kokarev">nwtour</who>
    <bug_when>2009-12-18 09:49:40 -0800</bug_when>
    <thetext>Created attachment 45160
html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>173205</commentid>
    <comment_count>2</comment_count>
      <attachid>45161</attachid>
    <who name="Konstantin Kokarev">nwtour</who>
    <bug_when>2009-12-18 09:50:20 -0800</bug_when>
    <thetext>Created attachment 45161
first included svg</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>173207</commentid>
    <comment_count>3</comment_count>
      <attachid>45162</attachid>
    <who name="Konstantin Kokarev">nwtour</who>
    <bug_when>2009-12-18 09:50:57 -0800</bug_when>
    <thetext>Created attachment 45162
second included svg</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>173209</commentid>
    <comment_count>4</comment_count>
    <who name="Konstantin Kokarev">nwtour</who>
    <bug_when>2009-12-18 09:54:10 -0800</bug_when>
    <thetext>+1

opera, firefox, arora, msie + renesis plugin: show red background and 2 words &quot;test&quot;.

midori, chromium, komqueror ( linux ): white background and 1 word &quot;test&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>282064</commentid>
    <comment_count>5</comment_count>
    <who name="Jeff Schiller">jeffschiller</who>
    <bug_when>2010-09-20 20:54:28 -0700</bug_when>
    <thetext>Konstantin, I&apos;m confused by your attachments.  None of your attachments use a &lt;image&gt; element as per Dustin, and the HTML file uses an &lt;object&gt; tags to include the two SVG files.  

So these would seem to be invalid files for this bug (though they do address the problem described in Bug 10687 and Bug 27078).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>282469</commentid>
    <comment_count>6</comment_count>
    <who name="Konstantin Kokarev">nwtour</who>
    <bug_when>2010-09-21 12:05:11 -0700</bug_when>
    <thetext>Jeff Schiller. Sorry, I really made a mistake.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>413295</commentid>
    <comment_count>7</comment_count>
    <who name="Nikolas Zimmermann">zimmermann</who>
    <bug_when>2011-06-01 04:45:30 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; Jeff Schiller. Sorry, I really made a mistake.

Another note regarding testcase from Konstantin:
The expected result is indeed a red background, and the word &quot;TEST&quot; twice, but only if the &lt;object&gt; is correctly closed:

&lt;object width=&quot;100&quot; height=&quot;100&quot; type=&quot;image/svg+xml&quot; data=&quot;1.svg&quot;&gt;&lt;/object&gt;

In the testcase you&apos;ll see:
&lt;object width=&quot;100&quot; height=&quot;100&quot; type=&quot;image/svg+xml&quot; data=&quot;1.svg&quot;/&gt;

When saving Konstantins testcase as .html file Firefox and WebKit will only show the word &quot;TEST&quot; once.
This is because the second div is not present in the DOM tree at all, because self-closing tags aren&apos;t valid in pure HTML.

If you properly close both &lt;object&gt;&lt;/object&gt;s then the testcase will show &quot;TEXT&quot; two times, both in Firefox and WebKit.

We still need a testcase for the original bug reported by Dustin.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>414083</commentid>
    <comment_count>8</comment_count>
    <who name="Nikolas Zimmermann">zimmermann</who>
    <bug_when>2011-06-02 06:48:17 -0700</bug_when>
    <thetext>This is resolved in trunk, see http://trac.webkit.org/changeset/87840.

*** This bug has been marked as a duplicate of bug 18228 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>45160</attachid>
            <date>2009-12-18 09:49:40 -0800</date>
            <delta_ts>2010-09-21 12:03:03 -0700</delta_ts>
            <desc>html</desc>
            <filename>bug.html</filename>
            <type>text/html</type>
            <size>313</size>
            <attacher name="Konstantin Kokarev">nwtour</attacher>
            
              <data encoding="base64">PGJvZHkgYmdjb2xvcj0iI2ZmMDAwMCI+CjxkaXYgaWQ9InRlc3QxIiBzdHlsZT0icG9zaXRpb246
IGFic29sdXRlO2xlZnQ6IDBweDt0b3A6IDBweDsiPgo8b2JqZWN0IHdpZHRoPSIxMDAiIGhlaWdo
dD0iMTAwIiB0eXBlPSJpbWFnZS9zdmcreG1sIiBkYXRhPSIxLnN2ZyIvPgo8L2Rpdj4KPGRpdiBp
ZD0idGVzdDIiIHN0eWxlPSJwb3NpdGlvbjogYWJzb2x1dGU7bGVmdDogMHB4O3RvcDogMHB4OyI+
CjxvYmplY3Qgd2lkdGg9IjEwMCIgaGVpZ2h0PSIxMDAiIHR5cGU9ImltYWdlL3N2Zyt4bWwiIGRh
dGE9IjIuc3ZnIi8+CjwvZGl2Pgo8L2JvZHk+Cg==
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>45161</attachid>
            <date>2009-12-18 09:50:20 -0800</date>
            <delta_ts>2010-09-21 12:02:49 -0700</delta_ts>
            <desc>first included svg</desc>
            <filename>1.svg</filename>
            <type>image/svg+xml</type>
            <size>354</size>
            <attacher name="Konstantin Kokarev">nwtour</attacher>
            
              <data encoding="base64">PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+Cjwh
RE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cu
dzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6
Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5
OS94bGluayIgd2lkdGg9IjEwMCIgaGVpZ2h0PSIxMDAiIHZpZXdCb3g9IjAgMCAxMDAgMTAwIiA+
Cjx0ZXh0IHg9IjIwIiB5PSIzMCIgZm9udC1zaXplPSIxMCIgZmlsbD0iYmxhY2siID5URVNUPC90
ZXh0Pgo8L3N2Zz4K
</data>
<flag name="review"
          id="57770"
          type_id="1"
          status="-"
          setter="nwtour"
    />
          </attachment>
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>45162</attachid>
            <date>2009-12-18 09:50:57 -0800</date>
            <delta_ts>2010-09-21 12:01:22 -0700</delta_ts>
            <desc>second included svg</desc>
            <filename>2.svg</filename>
            <type>image/svg+xml</type>
            <size>354</size>
            <attacher name="Konstantin Kokarev">nwtour</attacher>
            
              <data encoding="base64">PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+Cjwh
RE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cu
dzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6
Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5
OS94bGluayIgd2lkdGg9IjEwMCIgaGVpZ2h0PSIxMDAiIHZpZXdCb3g9IjAgMCAxMDAgMTAwIiA+
Cjx0ZXh0IHg9IjIwIiB5PSI3MCIgZm9udC1zaXplPSIxMCIgZmlsbD0iYmxhY2siID5URVNUPC90
ZXh0Pgo8L3N2Zz4K
</data>

          </attachment>
      

    </bug>

</bugzilla>