[Webkit-unassigned] [Bug 45277] Canvas api: c.createPattern(img, ...) does not work if image is SVG
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Apr 22 04:56:30 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=45277
stml <james at shorttermmemoryloss.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |james at shorttermmemoryloss.c
| |om
--- Comment #1 from stml <james at shorttermmemoryloss.com> ---
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.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150422/ef201d11/attachment-0001.html>
More information about the webkit-unassigned
mailing list