Open Bug 1844413 Opened 1 year ago Updated 1 year ago

SVG image is not correct rendered on a canvas because of " entity in a url

Categories

(Core :: Graphics, defect)

Firefox 117
defect

Tracking

()

Tracking Status
firefox117 --- affected

People

(Reporter: calixte, Unassigned)

Details

Attachments

(1 file)

Attached file plop.html

In pdf.js we've some ref tests which generate some svg with the html used to render a page, this svg is drawn onto a canvas and exported into png to make it comparable with some references we've.

The SVG file has a foreign object which is some html containing in its style something like:

background-image: url(" .... &quot);...

and this background isn't drawn (on the left in the test case) unless " are replaced by ' (on the right).

The first time the test case is loaded nothing is rendered but it's likely an other bug (see bug 1844414).

The testcase renders the same for me in Firefox, Safari, and Chrome. Safari even shares the "not drawing anything on first load" that Firefox has.

Since we match other browsers, unless we (along with the other browsers) are not following the spec, should this be resolved as invalid?

Severity: -- → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: