Closed Bug 2086864 Opened 21 days ago Closed 14 days ago

Elements jump with animated scrolling with fractional scaling on Linux

Categories

(Core :: Graphics: WebRender, defect)

Firefox 159
defect

Tracking

()

RESOLVED FIXED
161 Branch
Tracking Status
firefox161 --- fixed

People

(Reporter: marcelohdez.inq, Assigned: gw)

Details

Attachments

(2 files, 1 external file)

Attached video showcase.mp4 —

Steps to reproduce

Have 133% scaling for my display on GNOME 51, go to https://ground.news landing page.

Actual results

The stories scrolling on the side jump around as they scroll.

Expected results

The elements should scroll rather smoothly like in Chrome.

Attached file about:support output —

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

Component: Untriaged → Panning and Zooming
Product: Firefox → Core

Geez, this looks a pixel snapping issue. Note that it doesn't look related scrolling, the container's transform style value is being changed.

Component: Panning and Zooming → Graphics: WebRender
Assignee: nobody → mozilla

WebRender snaps an item with every enclosing reference frame's origin
composed in, rounding the accumulated offset of snapping frames, but the
inherited transform Gecko rounds an image's rect with to pick its raster size
only carried the frames' transforms. Under a fractional origin the size could
be a device pixel off the snapped rect, and when a transform moved from script
it alternated between sizes, re-decoding the image and changing its shape.

The tests are Mozilla reftests because they rely on layout.css.devPixelsPerPx
and layout.disable-pixel-alignment.

Pushed by gwatson@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/f5d2ec1ecdee https://hg.mozilla.org/integration/autoland/rev/58f6f7d69f45 Pick image raster sizes with the reference frame origins WebRender snaps with. r=gfx-reviewers,nical
Status: UNCONFIRMED → RESOLVED
Closed: 14 days ago
Resolution: --- → FIXED
Target Milestone: --- → 161 Branch
QA Whiteboard: [qa-triage-done-c162/b161]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: