Closed Bug 1491076 Opened 6 years ago Closed 6 years ago

Problem positioning svg element with high-precision coordinates and use tags

Categories

(Core :: SVG, defect, P3)

62 Branch
Desktop
All
defect

Tracking

()

RESOLVED DUPLICATE of bug 895245

People

(Reporter: vakarelov, Unassigned)

Details

Attachments

(3 files)

Attached image gui_veiw.svg
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0
Build ID: 20180830143136

Steps to reproduce:

The attached file shows the problem.


Actual results:

You see the corners are not aligned with the box, as well as the navigation icons are not aligned with the line. The problem occurs when the local coordinate system works in with high-precission coordinates, different in  second decimal place. In the case, these are geographical coordinate. The outside group scales the coordinate to screen level. 

Note that the miss-aligned elements are positioned with a <use> tag.

The problematic elements are in a group with id = "handler".

As a side, but possibly related points, Firefox misaligned fireing events in this setup. For example, a mouse-over event defined on the polygon is misaligend to the left, in a similar way.   


Expected results:

The elements should be positioned correctly.
Component: Untriaged → SVG
OS: Unspecified → Windows 10
Product: Firefox → Core
Hardware: Unspecified → Desktop
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P3
I only checked this on Google Chrome, Safari, and Firefox nightly. It seems Safari cannot show the navigation icons, and Chrome looks correct. Firefox Nightly has the bug you mentioned. Besides, we need a reduced testcase for this. The attached svg file is pretty complicated.
OS: Windows 10 → All
Attached image gui_veiw.svg
Here is a simpler version.
Cool. Thanks a lot.
This testcase is the same as the second, but with just one of the circles (and some stuff removed/simplified).

The <use> setup and behavior here is the same as in bug 895245 - here the scale on the <g> is by 4639.5634.
(Also note the huge hit area for the red circle, as in bug 1167959.)
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: