Closed Bug 1662062 Opened 4 years ago Closed 3 years ago

Scalable vector graphics files gets distorted if zoomed in using pinch-to-zoom

Categories

(Core :: Graphics: WebRender, defect)

Firefox 82
Desktop
Windows 10
defect

Tracking

()

RESOLVED FIXED
85 Branch
Tracking Status
firefox85 --- fixed

People

(Reporter: adummyuser, Assigned: tnikkel)

References

(Blocks 1 open bug, )

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0

Steps to reproduce:

  1. Open any scalable vector graphics file.
  2. Zoom in on the file using pinch-to-zoom to the maximum allowed.

Actual results:

The edges of the SVG file gets distorted.

Expected results:

The SVG file shouldn't get distorted when zooming in and instead smooth out the edges.

OS: Unspecified → Windows 10
Hardware: Unspecified → Desktop

Hi adummyuser,

I'm trying to reproduce this issue using windows 10 pro, firefox nightly 82.0a1 (2020-09-04) (64-Bit), beta 81.0b4 and release 80.0, reached 300% zoom, borders don't look distorted.

I used this testing file https://mime.ty.ax/dl/test.svg?ty=svg&ct=image%2Fsvg%2Bxml&cd=attachment

Please test if the issue occurs to you in safe mode (add-ons disabled). Here is a link that can help you do that:
https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode
Also, can you try this on the latest version of nightly? You can download it from here: https://nightly.mozilla.org/

I will move this over to a component so developers can take a look over it. If is not the correct component please feel free to change it to an appropriate one.

Thanks for the report.

Best regards, Clara.

Component: Untriaged → Graphics
Flags: needinfo?(adummyuser)
Product: Firefox → Core
Status: UNCONFIRMED → NEW
Component: Graphics → Graphics: WebRender
Ever confirmed: true

I can reproduce but only with webrender. Furthermore, after pinch zooming in it is easy to get checkerboarding by pan to the right, and you even get a checkerboard left effect on the right side when panning left.

Flags: needinfo?(adummyuser)

The bluriness exists at least as far back as 2018-12-01, before that pinch zoom in the desktop browser isn't really in a usable state it seems.

Hello, Clara

You may have been using the normal zoom function instead of pinch-to-zoom which only is currently available on Nightly.

I have downloaded and opened the file you used to test and the borders still look distorted. I also refreshed Firefox but the issue is still there. But when I started Firefox in Safe mode, the issue doesn't appear anymore. I haven't installed any extensions ever since I installed Nightly on my computer.

Severity: -- → S3

Update: The issue doesn't seem to happen anymore on the latest version of Nightly (2020-09-11).

The issue now only appears when I enable webrender. Previously, the issue appears even when webrender is disabled.

Flags: needinfo?(tnikkel)

Looks like it's just a case we missed. This affects on desktop and android.

Assignee: nobody → tnikkel
Status: NEW → ASSIGNED
Flags: needinfo?(tnikkel)
See Also: → 1678515

Bug 1678515 is filed for a weird rounding (?) issue I ran into writing a test for this. (I was able to avoid the issue though by changing the test slightly.)

Pushed by tnikkel@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/774fb7eed629
Make StackingContextHelper constructor handle pinch zooming resolution when calculatoring the scale. r=jrmuizel

Weird, must have been some change in unified building includes or something? I'll add an include that should fix this and test it on try and then reland.

Flags: needinfo?(tnikkel)
Pushed by tnikkel@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/194ca0c692cd
Make StackingContextHelper constructor handle pinch zooming resolution when calculatoring the scale. r=jrmuizel
Regressions: 1679633
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 85 Branch
No longer regressions: 1679633
Regressions: 1691668
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: