<?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>48462</bug_id>
          
          <creation_ts>2010-10-27 13:44:01 -0700</creation_ts>
          <short_desc>SVG content gets opaque white background</short_desc>
          <delta_ts>2011-01-27 11:31:04 -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>SVG</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows 7</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>10687</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>
          <dependson>10687</dependson>
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Michael O&apos;Rourke">mkorourk</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>helder.magalhaes</cc>
    
    <cc>jeffschiller</cc>
    
    <cc>krit</cc>
    
    <cc>mdelaney7</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>300523</commentid>
    <comment_count>0</comment_count>
      <attachid>72079</attachid>
    <who name="Michael O&apos;Rourke">mkorourk</who>
    <bug_when>2010-10-27 13:44:01 -0700</bug_when>
    <thetext>Created attachment 72079
Content referenced by example HTML files

When SVG content is brought into HTML via the &lt;object&gt; or &lt;embed&gt; tags the unpainted background of the SVG content is rendered as opaque white.

When SVG content in brought into HTML via the &lt;img&gt; tag the unpainted background of the SVG content is rendered as transparent.

It seems that the &lt;img&gt; tag behaviour is far more useful for compositing content and the correct model for SVG content.

Using the &lt;img&gt; tag is undesirable as it seems to treat the SVG content as an image and then text selection and links in text do not work. These do work when the content is brought in with &lt;object&gt; or &lt;embed&gt; but then the opaque white background limits the usefulness of SVG content.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>300525</commentid>
    <comment_count>1</comment_count>
      <attachid>72080</attachid>
    <who name="Michael O&apos;Rourke">mkorourk</who>
    <bug_when>2010-10-27 13:44:42 -0700</bug_when>
    <thetext>Created attachment 72080
HTML which brings in SVG content via &lt;embed&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>300526</commentid>
    <comment_count>2</comment_count>
      <attachid>72081</attachid>
    <who name="Michael O&apos;Rourke">mkorourk</who>
    <bug_when>2010-10-27 13:45:00 -0700</bug_when>
    <thetext>Created attachment 72081
HTML which brings in SVG content via &lt;img&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>300887</commentid>
    <comment_count>3</comment_count>
    <who name="Dirk Schulze">krit</who>
    <bug_when>2010-10-27 22:47:26 -0700</bug_when>
    <thetext>The reason seems to be http://trac.webkit.org/browser/trunk/WebCore/rendering/RenderBoxModelObject.cpp#L646
Not sure what the SVG spec is saying.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>300898</commentid>
    <comment_count>4</comment_count>
    <who name="Jeff Schiller">jeffschiller</who>
    <bug_when>2010-10-27 23:25:59 -0700</bug_when>
    <thetext>WORKSFORME

Please check with a nightly webkit.  This was fixed for Bug 10687 and the embed displays with a transparent background on my nightly build.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>300935</commentid>
    <comment_count>5</comment_count>
    <who name="Dirk Schulze">krit</who>
    <bug_when>2010-10-28 01:12:46 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; WORKSFORME
&gt; 
&gt; Please check with a nightly webkit.  This was fixed for Bug 10687 and the embed displays with a transparent background on my nightly build.

I couldn&apos;t check the examples of above, since the circle.svg is not included, nor accessible. But I guess he&apos;s not talking about the transparence level, but the color. Can it be that the background of the embedded SVG&apos;s are transparent white and on image transparent black? If so, we should make it consistent. This can make a difference on some compositing modes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>300936</commentid>
    <comment_count>6</comment_count>
    <who name="Dirk Schulze">krit</who>
    <bug_when>2010-10-28 01:13:37 -0700</bug_when>
    <thetext>Hm, maybe I misinterpreted the original comment, sorry.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>301216</commentid>
    <comment_count>7</comment_count>
    <who name="Michael O&apos;Rourke">mkorourk</who>
    <bug_when>2010-10-28 12:05:07 -0700</bug_when>
    <thetext>Bug 10687 does sound like it is the same issue and should resolve my problem.

Sorry about that. I&apos;ll try out the nightly build.

Is there a way to tell what version of webkit is in Chrome? So that I can see when the fixed webkit build gets into my Chrome?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>340785</commentid>
    <comment_count>8</comment_count>
    <who name="Helder Magalhães">helder.magalhaes</who>
    <bug_when>2011-01-27 01:59:08 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; WORKSFORME
&gt; 
&gt; Please check with a nightly webkit.  This was fixed for Bug 10687 and the embed displays with a transparent background on my nightly build.

I confirm this fixed as well (on Windows Vista SP2 with Chrome 10.0.648.6 dev) - I&apos;d vote this closed as well: WFM (as Jeff suggested) or even as a dup. of bug 10687, as that underlying issue is more generic and also older than this one (although a dependency was already set). :-)

BTW: Great work in #10687, Jeff! ;-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>340968</commentid>
    <comment_count>9</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-01-27 11:31:04 -0800</bug_when>
    <thetext>Please feel free to re-open if this is still an issue.

*** This bug has been marked as a duplicate of bug 10687 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>72079</attachid>
            <date>2010-10-27 13:44:01 -0700</date>
            <delta_ts>2010-10-27 13:44:01 -0700</delta_ts>
            <desc>Content referenced by example HTML files</desc>
            <filename>circle.svg</filename>
            <type>image/svg+xml</type>
            <size>591</size>
            <attacher name="Michael O&apos;Rourke">mkorourk</attacher>
            
              <data encoding="base64">PD94bWwgdmVyc2lvbj0iMS4wIj8+DQo8IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQg
U1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcx
MS5kdGQiPg0KPHN2ZyB2ZXJzaW9uPScxLjEnIHdpZHRoPScxMDBweCcgaGVpZ2h0PScxMDBweCcg
eG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJyB4bWxuczp4bGluaz0naHR0cDovL3d3
dy53My5vcmcvMTk5OS94bGluayc+DQoJPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTUzLjAxMjQs
LTQ3LjkwMzIpIj4NCgkJPHBhdGggZD0iTSAyODEuNDc1IDEzNiBDIDMwOS4zNTIgMTM2IDMzMS45
NSAxNTguNTk4IDMzMS45NSAxODYuNDc1IEMgMzMxLjk1IDIxNC4zNTIgMzA5LjM1MiAyMzYuOTUg
MjgxLjQ3NSAyMzYuOTUgQyAyNTMuNTk4IDIzNi45NSAyMzEgMjE0LjM1MiAyMzEgMTg2LjQ3NSBD
IDIzMSAxNTguNTk4IDI1My41OTggMTM2IDI4MS40NzUgMTM2IFoiIHRyYW5zZm9ybT0idHJhbnNs
YXRlKC0xNzUuNywtODYuNzUpIHNjYWxlKDAuOTkwMDk3LDAuOTkwMDk3KSIgZmlsbD0iIzAwMDAw
MCIvPg0KCTwvZz4NCjwvc3ZnPg0K
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>72080</attachid>
            <date>2010-10-27 13:44:42 -0700</date>
            <delta_ts>2010-10-27 13:44:42 -0700</delta_ts>
            <desc>HTML which brings in SVG content via &lt;embed&gt;</desc>
            <filename>opaque_background.xhtml</filename>
            <type>application/xhtml+xml</type>
            <size>322</size>
            <attacher name="Michael O&apos;Rourke">mkorourk</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBYSFRNTCAxLjAgU3RyaWN0Ly9FTiIg
Imh0dHA6Ly93d3cudzMub3JnL1RSL3hodG1sL0RURC94aHRtbDEtc3RyaWN0LmR0ZCI+DQo8aHRt
bCB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94aHRtbCI+DQogIDxib2R5IHN0eWxlPSJi
YWNrZ3JvdW5kLWNvbG9yOiAjNjZGRjY2Ij4NCiAgICA8ZGl2IHN0eWxlPSJwb3NpdGlvbjogYWJz
b2x1dGU7IGxlZnQ6IDUwcHg7IHRvcDogNTBweDsiPg0KICAgICAgPGltZyBzcmM9ImNpcmNsZS5z
dmciLz4NCiAgICA8L2Rpdj4NCiAgPC9ib2R5Pg0KPC9odG1sPg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>72081</attachid>
            <date>2010-10-27 13:45:00 -0700</date>
            <delta_ts>2010-10-27 13:45:00 -0700</delta_ts>
            <desc>HTML which brings in SVG content via &lt;img&gt;</desc>
            <filename>transparent_background.xhtml</filename>
            <type>application/xhtml+xml</type>
            <size>324</size>
            <attacher name="Michael O&apos;Rourke">mkorourk</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBYSFRNTCAxLjAgU3RyaWN0Ly9FTiIg
Imh0dHA6Ly93d3cudzMub3JnL1RSL3hodG1sL0RURC94aHRtbDEtc3RyaWN0LmR0ZCI+DQo8aHRt
bCB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94aHRtbCI+DQogIDxib2R5IHN0eWxlPSJi
YWNrZ3JvdW5kLWNvbG9yOiAjNjZGRjY2Ij4NCiAgICA8ZGl2IHN0eWxlPSJwb3NpdGlvbjogYWJz
b2x1dGU7IGxlZnQ6IDUwcHg7IHRvcDogNTBweDsiPg0KICAgICAgPGVtYmVkIHNyYz0iY2lyY2xl
LnN2ZyIvPg0KICAgIDwvZGl2Pg0KICA8L2JvZHk+DQo8L2h0bWw+
</data>

          </attachment>
      

    </bug>

</bugzilla>