<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:james&#64;shorttermmemoryloss.com" title="stml &lt;james&#64;shorttermmemoryloss.com&gt;"> <span class="fn">stml</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Canvas api: c.createPattern(img,...) does not work if image is SVG"
   href="https://bugs.webkit.org/show_bug.cgi?id=45277">bug 45277</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
               &nbsp;
           </td>
           <td>james&#64;shorttermmemoryloss.com
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Canvas api: c.createPattern(img,...) does not work if image is SVG"
   href="https://bugs.webkit.org/show_bug.cgi?id=45277#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Canvas api: c.createPattern(img,...) does not work if image is SVG"
   href="https://bugs.webkit.org/show_bug.cgi?id=45277">bug 45277</a>
              from <span class="vcard"><a class="email" href="mailto:james&#64;shorttermmemoryloss.com" title="stml &lt;james&#64;shorttermmemoryloss.com&gt;"> <span class="fn">stml</span></a>
</span></b>
        <pre>I have also independently encountered this bug, with comparable results.

var img = new Image();
img.onload = function() {
    var pattern = badge.createPattern(img, 'repeat');
    badge.fillStyle = pattern;
    // draw 'badge' shape
    badge.fill();
    };  
img.src = '../flags/iso/'+country+'.svg';

This works as expected in Firefox and Chrome, but in Safari (7.0.3) the background is blank (white). Using a png or jpg for the pattern works as expected in Safari et al - it's only SVGs that render incorrectly. DrawImage also works in Safari for SVGs - it's only createPattern that fails.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>