<?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>91498</bug_id>
          
          <creation_ts>2012-07-17 06:18:27 -0700</creation_ts>
          <short_desc>SVG &lt;use&gt; elements not displayed in Chrome (Safari is OK)</short_desc>
          <delta_ts>2012-07-17 16:46: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>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>87504</dup_id>
          
          <bug_file_loc>http://www.bobwyttenbach.com/chromeuse.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Bob Wyttenbach">rw12</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>pdr</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>671222</commentid>
    <comment_count>0</comment_count>
    <who name="Bob Wyttenbach">rw12</who>
    <bug_when>2012-07-17 06:18:27 -0700</bug_when>
    <thetext>Chrome does not display &lt;use&gt; elements in inline svg. The same svg is displayed correctly when linked through an &lt;object&gt; tag.

Here is a simple test case (code below or view it at http://www.bobwyttenbach.com/chromeuse.html):

&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta charset=&quot;utf-8&quot;&gt;
&lt;title&gt;Chrome use-tag bug?&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;svg version=&quot;1.1&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot; x=&quot;0px&quot; y=&quot;0px&quot; width=&quot;200px&quot; height=&quot;200px&quot; viewBox=&quot;0 0 200 200&quot;&gt;
    &lt;defs&gt;
        &lt;g id=&quot;test1&quot;&gt;
            &lt;circle cx=&quot;100&quot; cy=&quot;100&quot; r=&quot;50&quot; fill=&quot;red&quot;/&gt;
        &lt;/g&gt;
    &lt;/defs&gt;
    &lt;g&gt;
        &lt;rect x=&quot;0.5&quot; y=&quot;0.5&quot; width=&quot;199&quot; height=&quot;199&quot; stroke=&quot;black&quot; fill=&quot;none&quot;/&gt;
        &lt;use xlink:href=&quot;#test1&quot; x=&quot;0&quot; y=&quot;0&quot;/&gt;
    &lt;/g&gt;
&lt;/svg&gt;
&lt;p&gt;Above is inline svg with a use tag; below is the same svg linked through an object tag. Below is correct.&lt;/p&gt;
&lt;object data=&quot;chromeuse.svg&quot; width=&quot;200&quot; height=&quot;200&quot;&gt;&lt;/object&gt;
&lt;/body&gt;
&lt;/html&gt;

The red circle does not appear in the inline svg but does appear when the same svg is linked through an object tag. Following someone&apos;s suggestion, I wrapped the circle in &lt;symbol&gt; tags (and moved id=&quot;test1&quot; into the symbol tag). It made no difference.

Safari, Firefox, Opera, and Internet Explorer 9 all display the inline svg correctly.

Tested with Chrome Version 20.0.1132.57 in both Mac OS 10.7.4 and Windows 7 (in VMWare Fusion). Webkit 536.11. (Safari WebKit 534.57.2 does not have this bug.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>671749</commentid>
    <comment_count>1</comment_count>
    <who name="Philip Rogers">pdr</who>
    <bug_when>2012-07-17 16:46:17 -0700</bug_when>
    <thetext>Marking as a duplicate of https://bugs.webkit.org/show_bug.cgi?id=87504

(Again, thank you for reporting this! I&apos;ve added more information about why this is a duplicate and when a release is being pushed at crbug.com/137666)

*** This bug has been marked as a duplicate of bug 87504 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>