svg image is correctly shown in img tag but not in canvas
Categories
(Core :: Graphics: Canvas2D, defect)
Tracking
()
People
(Reporter: steep1580, Unassigned)
Details
Attachments
(1 file)
156.29 KB,
image/png
|
Details |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.114 Safari/537.36
Steps to reproduce:
- Open this plunker in the Firefox https://plnkr.co/edit/SUZNFaRs107OxLfH
- Run it
Actual results:
Text is drown once in img tag
Expected results:
Text must be drown two times: in canvas and in img
Comment 1•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Graphics: Canvas2D' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•3 years ago
|
||
Giving the svg in the data uri a width attribute in addition to a height attribute makes it appear in the canvas.
Comment 3•3 years ago
|
||
Ah, looks like a dupe of bug 700533?
(In reply to Timothy Nikkel (:tnikkel) from comment #2)
Giving the svg in the data uri a width attribute in addition to a height attribute makes it appear in the canvas.
Thanks, it was helpful
Updated•3 years ago
|
Description
•