SVG rendering: huge loss of precision in scaling of objects from <defs> when SVG display-list painting is enabled

NEW
Unassigned

Status

()

Core
SVG
4 years ago
4 years ago

People

(Reporter: Mikhail Ryazanov, Unassigned)

Tracking

({regression, testcase})

17 Branch
x86
Windows XP
regression, testcase
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(3 attachments)

(Reporter)

Description

4 years ago
Created attachment 777572 [details]
test.svg

User Agent: Mozilla/5.0 (Windows NT 5.1; rv:22.0) Gecko/20100101 Firefox/22.0 (Beta/Release)
Build ID: 20130618035212

Steps to reproduce:

Open an SVG file that uses transformation with large scaling parameters applied to objects defined in <defs>.
See the attached SVG file "test.svg" for an example.


Actual results:

The objects drawn with <use ...> are significantly displaced from the expected positions, apparently due to some intermediate rounding errors.
See the attached results of rendering "firefox.png" (results with and without "shape-rendering='geometricPrecision'" have no visible differences).


Expected results:

The objects drawn with <use ...> must behave in the same way as objects drawn directly.
See the attached example of correct rendering "correct.png" (produced using Chromium; Opera produces visually identical results).
(Reporter)

Comment 1

4 years ago
Might be related (or not) to Bug 836768.
(Reporter)

Comment 2

4 years ago
Created attachment 777574 [details]
firefox.png
(Reporter)

Comment 3

4 years ago
Created attachment 777576 [details]
correct.png
(Reporter)

Updated

4 years ago
Attachment #777574 - Attachment description: Incorrect rendering in Firefox → firefox.png
(Reporter)

Updated

4 years ago
Attachment #777576 - Attachment description: Correct rendering (in Chromium) → correct.png

Updated

4 years ago
Component: Untriaged → SVG
Product: Firefox → Core

Comment 4

4 years ago
Another issue with SVG display list.
svg.display-lists.painting.enabled=false fixes the issue.

Pushlog: http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=588424024294&tochange=89dcadd42ec4
Blocks: 776054
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression, testcase
Summary: SVG rendering: huge loss of precision in scaling of objects from <defs> → SVG rendering: huge loss of precision in scaling of objects from <defs> when SVG display-list painting is enabled
Version: 22 Branch → 17 Branch
You need to log in before you can comment on or make changes to this bug.