Closed Bug 1712274 Opened 5 years ago Closed 3 years ago

Large svg not rendering properly in img tag

Categories

(Core :: SVG, defect)

Firefox 88
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: robertas.uldukis, Unassigned)

References

Details

Attachments

(3 files)

Attached image big.svg

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36

Steps to reproduce:

Add large svg image to html img tag (svg image attached).

For example: <html><img src="big.svg"/></html>

Actual results:

In a table, last icons starting from Teacher12 until end is not rendered.

Expected results:

Open same big.svg file with browsers as a svg file, all elements will be rendered properly. But if the same svg file is added into html file as <img>, then is rendered with some missing elements.

The Bugbug bot thinks this bug should belong to the 'Core::SVG' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → SVG
Product: Firefox → Core

Good example, as you can see 29 icons are missing in the bottom of diagram.

On macOS, the SVG displays nothing (entirely blank) when used in an <img> tag, although opened standalone, it renders OK.

If I zoom the test page (comment 2) out to 50%, then it does render (presumably because it's no longer so huge), though still with icons missing from the last rows.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true

This appears to work in current Nightly for me. From running moz-regression --find-fix, it seems that bug 1814878 and bug 1821512 (at least for Windows) contributed to resolving this.

Status: NEW → RESOLVED
Closed: 3 years ago
Depends on: 1814878, 1821512
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: