Closed Bug 1259787 Opened 8 years ago Closed 5 years ago

Scaling a line along 1 axis causes it to shift along the other axis

Categories

(Core :: SVG, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: brendan.d.mcnamara, Unassigned)

References

Details

(Keywords: regression)

Attachments

(4 files)

Attached file firefox bug.zip
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.75 Safari/537.36

Steps to reproduce:

- drawing a border using lines (for the sides) and arcs (for a corner radius).
- draw an arc of radius 2 and try to line it up with the lines from the border


Actual results:

The ends of the arc are not lining up with borders (works in Chrome and Safari)
- image of code and snapshot of page are attached
- seems to be off by half a pixel in either direction


Expected results:

The corner and borders should line up.

NOTE: Code is written in react, hard-coded "2" represents corner radius of 2 in SVG
We really are going to need a minimal testcase here and not just a set of png images. Please add a single html file demonstrating the issue.
Flags: needinfo?(brendan.d.mcnamara)
Attached file firefox demo.zip
Sorry about that, I did some more digging and boiled down the issue to this: scaling a line along 1 axis causes it to shift along the other axis. Attached is another set of images and the html code that renders the problem
Flags: needinfo?(brendan.d.mcnamara)
Component: Untriaged → SVG
Product: Firefox → Core
Flags: needinfo?(brendan.d.mcnamara)
Summary: SVG path arc is not drawn correctly → Scaling a line along 1 axis causes it to shift along the other axis
Flags: needinfo?(brendan.d.mcnamara)
It's an old regression:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=f7c89de3ab43&tochange=3f0587ce1774


Matt Woodrow — Bug 788044 - Make transformed frames the reference frame for their display list tree. r=roc
Blocks: 788044
Keywords: regression
The problem seems to be triggered by using the line transformation as a style property. The direction and amount of the shift depends heavily on the page zoom but can also be influenced by using e.g. a path instead of a line.

Is there a connection between this bug and bug #1265264?
Flags: needinfo?(longsonr)
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Unspecified → All
Hardware: Unspecified → All
Version: 45 Branch → Trunk
I don't know. I suggest you establish a regression range in the other bug.
Flags: needinfo?(longsonr)
I'm updated to version 46.01 on Firefox and this bug continues to exist. Is there any progress on fixing this?

Seems OK now.

Status: NEW → 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

Created:
Updated:
Size: