Open Bug 1870474 Opened 11 months ago Updated 8 months ago

SVG X and Y rounding issues when scale transformation is used

Categories

(Core :: Graphics: WebRender, defect, P3)

Firefox 120
defect

Tracking

()

UNCONFIRMED

People

(Reporter: tarquinwj, Unassigned)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

Attached image ffsvgrounding.svg

Steps to reproduce:

120.0.1 (64-bit) stable on Windows 10.
http://www.howtocreate.co.uk/working/ffsvgrounding.svg

  1. Create a shape with whatever dimensions it should have.
  2. <use> that shape in a group, and transform="scale" the <use> with a scale that has several decimal places, below 0.1
  3. <use> that scaled version, and set the x and y positions in the <use> to positions that also have several decimal places, less than 1.

Actual results:

Firefox rounds or truncates positions somewhere, causing the shapes to be misplaced. As the x and y values are changed, the error in the resulting position suddenly jumps by more than the change in coordinate, showing that some rounding is taking place.

This issue is not seen in Chromium.

Expected results:

The shapes should have been correctly positioned.

The Bugbug bot thinks this bug should belong to the 'Core::Graphics: WebRender' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Graphics: WebRender
Product: Firefox → Core

I can reproduce on my macOS setup as well. Nical, would you please take a look?

Severity: -- → S3
Flags: needinfo?(nical.bugzilla)
Priority: -- → P3

Is there perhaps someone that can look into this? It's breaking some stuff I cannot realistically recode without making the SVG enormous (it gets used repeatedly at different scales), and I couldn't find any useful workarounds.

2 months in. I understand that development time is precious, but this is still sitting in "unconfirmed" in spite of me providing a reduced testcase, and someone else having reproduced the bug. Surely this can be confirmed and assigned by now. Is this sort of delay normal?

Flags: needinfo?(nical.bugzilla)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: