Closed Bug 1359741 Opened 7 years ago Closed 5 years ago

Svg inside svg has the wrong dimensions

Categories

(Core :: SVG, defect, P3)

53 Branch
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: kuzvasiliy, Unassigned)

Details

Attachments

(3 files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.81 Safari/537.36

Steps to reproduce:

Go to https://jsfiddle.net/kuzvac/0fhd78qj/embedded/result
Look at the dimensions of the nested svg node


Actual results:

Svg node have wrong dimensions


Expected results:

Svg node shall have correct dimension
Attachment #8861831 - Attachment description: Screenshot → Incorrect dimensions in Firefox
Component: Untriaged → SVG
Product: Firefox → Core
Attached image 1359741_linux_build.png
kuzvasiliy, are you sure you are inspecting the right element?

I attach what I see here with:
Build identifier: Mozilla/5.0 (X11; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

The dimension numbers are not exact but very close to your Chrome screenshot.

Happy to help figure out if there is a bug here :)
Flags: needinfo?(kuzvasiliy)
(In reply to Luis de Bethencourt [:luisbg] from comment #2)
> Created attachment 8862054 [details]
> 1359741_linux_build.png
> 
> kuzvasiliy, are you sure you are inspecting the right element?
> 
> I attach what I see here with:
> Build identifier: Mozilla/5.0 (X11; Linux x86_64; rv:55.0) Gecko/20100101
> Firefox/55.0
> 
> The dimension numbers are not exact but very close to your Chrome screenshot.
> 
> Happy to help figure out if there is a bug here :)

Hmmm... ouch, looks like i tag the wrong version of Firefox! :)
I found this bug in latest stable version (53).
If it work in Nightly build, that's good! I will wait for new stable version. 
Thank you.
Flags: needinfo?(kuzvasiliy)
Version: 55 Branch → 53 Branch
I recently noticed (in Firefox 55), if i wrap inner svg into g tag, this g tag will have wrong dimension. fiddle is updated.
Priority: -- → P3
Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: