<?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>186315</bug_id>
          
          <creation_ts>2018-06-05 12:17:02 -0700</creation_ts>
          <short_desc>SVG &lt;image&gt; elements don&apos;t dislpay image</short_desc>
          <delta_ts>2018-06-05 12:37:33 -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>Safari 11</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>153854</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>1</everconfirmed>
          <reporter>shayneosull</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>sabouhallawa</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1430172</commentid>
    <comment_count>0</comment_count>
    <who name="">shayneosull</who>
    <bug_when>2018-06-05 12:17:02 -0700</bug_when>
    <thetext>Loading a .png or .jpg as an &lt;image&gt; element within an SVG does not work. See example failing here: https://developer.mozilla.org/en-US/docs/Web/SVG/Element/image</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1430178</commentid>
    <comment_count>1</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2018-06-05 12:37:33 -0700</bug_when>
    <thetext>This happens because SVG 2 does not require the xlink namespace before the href attribute.

For example, this tag will not show the image in WebKit

&lt;image href=&quot;https://mdn.mozillademos.org/files/6457/mdn_logo_only_color.png&quot; height=&quot;200&quot; width=&quot;200&quot;/&gt;

But this tag will show it because WebKit still supports SVG 1 only:

&lt;image xlink:href=&quot;https://mdn.mozillademos.org/files/6457/mdn_logo_only_color.png&quot; height=&quot;200&quot; width=&quot;200&quot;/&gt;

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

    </bug>

</bugzilla>