If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

SVG doesn't resize correctly until page resizes

RESOLVED FIXED

Status

()

Core
SVG
RESOLVED FIXED
5 years ago
3 years ago

People

(Reporter: morandidodo@gmail.com, Unassigned)

Tracking

13 Branch
x86_64
Linux
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(4 attachments, 2 obsolete attachments)

(Reporter)

Description

5 years ago
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:13.0) Gecko/20100101 Firefox/13.0.1
Build ID: 20120615112143

Steps to reproduce:

I have a <object> refering to an SVG. This has a defined viewBox so it should resize automagically. The <object> has its width defined in percentage inside a stylesheet.


Actual results:

The SVG is not resized correctly but mantains its default sizes until the page is resized.


Expected results:

The SVG size should be correctly set when the page is loaded, not only after it's resized.

Comment 1

5 years ago
Post a minimal testcase please.

Updated

5 years ago
Component: Untriaged → SVG
Product: Firefox → Core
(Reporter)

Comment 2

5 years ago
Created attachment 639964 [details]
XHTML testcase (it needs the xml and the xsl files)

My fault: I noticed the problem only verifies with transformed SVG, with plain SVG it's ok.
(Reporter)

Comment 3

5 years ago
Created attachment 639965 [details]
A simple XML needed for the testcase.
(Reporter)

Comment 4

5 years ago
Created attachment 639966 [details]
A XSL containing SVG data. Needed for testcase.

Comment 5

5 years ago
Created attachment 640641 [details]
snapshot of object/svg elements in Inspector

I tested your testcase with Inspector.
The object resizes according to the page, but the SVG element keeps its size until I click on object element.
In my snapshot, the black rectangle is the element 'object' and the white rectangle is the element 'svg'.

In addition there is a weird issue with your testcase, I filled bug 772497.

Updated

5 years ago
Depends on: 772497

Updated

5 years ago
Attachment #639964 - Attachment mime type: application/octet-stream → application/xhtml+xml

Updated

5 years ago
Attachment #639966 - Attachment mime type: application/octet-stream → application/xslt+xml

Updated

5 years ago
Attachment #639966 - Attachment mime type: application/xslt+xml → text/plain

Comment 6

3 years ago
Created attachment 8485408 [details]
A simple XML needed for the testcase.
Attachment #639965 - Attachment is obsolete: true

Updated

3 years ago
Attachment #8485408 - Attachment mime type: text/plain → text/xml

Updated

3 years ago
Attachment #639966 - Attachment mime type: text/plain → application/xslt+xml

Comment 7

3 years ago
Created attachment 8485409 [details]
XHTML testcase
Attachment #639964 - Attachment is obsolete: true

Updated

3 years ago
Attachment #8485409 - Attachment mime type: text/plain → application/xhtml+xml

Comment 8

3 years ago
Fixed by bug 1063073
Blocks: 1063073
Status: UNCONFIRMED → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.