Closed Bug 1780772 Opened 2 years ago Closed 2 years ago

svg image is correctly shown in img tag but not in canvas

Categories

(Core :: Graphics: Canvas2D, defect)

Firefox 102
defect

Tracking

()

RESOLVED DUPLICATE of bug 700533

People

(Reporter: steep1580, Unassigned)

Details

Attachments

(1 file)

Attached image Example.png

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:

  1. Open this plunker in the Firefox https://plnkr.co/edit/SUZNFaRs107OxLfH
  2. Run it

Actual results:

Text is drown once in img tag

Expected results:

Text must be drown two times: in canvas and in img

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.

Component: Untriaged → Graphics: Canvas2D
Product: Firefox → Core

Giving the svg in the data uri a width attribute in addition to a height attribute makes it appear in the canvas.

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

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: