Closed Bug 771520 Opened 12 years ago Closed 10 years ago

SVG doesn't resize correctly until page resizes

Categories

(Core :: SVG, defect)

13 Branch
x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: morandidodo, Unassigned)

References

Details

Attachments

(4 files, 2 obsolete files)

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.
Post a minimal testcase please.
Component: Untriaged → SVG
Product: Firefox → Core
My fault: I noticed the problem only verifies with transformed SVG, with plain SVG it's ok.
Attached file A simple XML needed for the testcase. (obsolete) —
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.
Depends on: 772497
Attachment #639964 - Attachment mime type: application/octet-stream → application/xhtml+xml
Attachment #639966 - Attachment mime type: application/octet-stream → application/xslt+xml
Attachment #639966 - Attachment mime type: application/xslt+xml → text/plain
Attachment #639965 - Attachment is obsolete: true
Attachment #8485408 - Attachment mime type: text/plain → text/xml
Attachment #639966 - Attachment mime type: text/plain → application/xslt+xml
Attached file XHTML testcase
Attachment #639964 - Attachment is obsolete: true
Attachment #8485409 - Attachment mime type: text/plain → application/xhtml+xml
Fixed by bug 1063073
Blocks: 1063073
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: