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

Svg inside svg has the wrong dimensions

UNCONFIRMED
Unassigned

Status

()

Core
SVG
P3
normal
UNCONFIRMED
5 months ago
2 months ago

People

(Reporter: kuzvasiliy, Unassigned)

Tracking

53 Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(3 attachments)

(Reporter)

Description

5 months ago
Created attachment 8861831 [details]
Incorrect dimensions in Firefox

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
(Reporter)

Updated

5 months ago
Attachment #8861831 - Attachment description: Screenshot → Incorrect dimensions in Firefox
(Reporter)

Comment 1

5 months ago
Created attachment 8861835 [details]
Correct dimensions in Chrome

Updated

5 months ago
Component: Untriaged → SVG
Product: Firefox → Core
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 :)
Flags: needinfo?(kuzvasiliy)
(Reporter)

Comment 3

5 months ago
(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)
(Reporter)

Updated

5 months ago
Version: 55 Branch → 53 Branch
(Reporter)

Comment 4

5 months ago
I recently noticed (in Firefox 55), if i wrap inner svg into g tag, this g tag will have wrong dimension. fiddle is updated.

Updated

2 months ago
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.