New issue
Advanced search Search tips

Issue 757196 link

Starred by 3 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug

Blocking:
issue 848748



Sign in to add a comment

Incorrect SVG position when using transforms

Reported by ha...@in-tools.com, Aug 19 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36

Example URL:
https://jsfiddle.net/Harbs/sk5bndba/

Steps to reproduce the problem:
1. Go to https://jsfiddle.net/Harbs/sk5bndba/
2. Look at the images
3. You will see the images are not lined up precisely relative to each other and the gray rectangles

What is the expected behavior?
Safari, Firefox, IE and Edge both display the images positioned as they should be.

What went wrong?
The SVG elements are not positioned in the correct place.
Opera displays the same bad positioning as Chrome.

Does it occur on multiple sites: Yes

Is it a problem with a plugin? No 

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 60.0.3112.101  Channel: stable
OS Version: OS X 10.10.5
Flash Version: Shockwave Flash 26.0 r0

This is a very big issue for me. I am in the process of migrating a complex application from Flash to HTML and precise positioning of objects using transformation matrices is crucial. The matrix math is identical to the Flash app and it works as expected in other browsers.

Since positioning of objects using matrix math is pretty common in Flash apps, I expect others migrating apps to HTML will encounter the same issue.
 

Comment 1 by f...@opera.com, Aug 19 2017

Components: -Blink Blink>SVG
Labels: OS-Linux OS-Windows
Status: Available (was: Unconfirmed)

Comment 2 by pdr@chromium.org, Aug 20 2017

Cc: schenney@chromium.org
Thanks for the minimized repro. I bisected this down to a change made in April 2016:
[SVG] Compensate for container size snapping
https://chromium.googlesource.com/chromium/src/+/d1d05d02de7519c777358ce926c007a7222449d6

The original author is still active but doesn't work in SVG much these days. We can probably fix this on the paint team.

Comment 3 by ha...@in-tools.com, Aug 20 2017

Thank you very much for the tip.

Rounding up the width and height does seem to make it display correctly:
https://jsfiddle.net/Harbs/sk5bndba/1/

This is a work-around I can use until this can get fixed. Much appreciated!
Labels: BugSource-User PaintTeamTriaged-20170820

Comment 5 by kbr@chromium.org, Jun 4 2018

Blocking: 848748

Sign in to add a comment