Closed Bug 1519541 Opened 2 years ago Closed 2 years ago
Gmail flashes and jumps when scrolling an email thread with an open Reply when scroll-anchoring is enabled
47 bytes, text/x-phabricator-request
|Details | Review|
Blink calculates the scrollable overflow rect for 'boxes' for scroll anchoring by taking the border box and then extending the height for the furthest vertical overflow. This commit matches tries to match their behavior by removing negative portions of the relative scrollable overflow rect that we get from nsIFrame. Depends on D16404
Priority: P3 → P1
The scroll anchoring bounding rect of a node can be influenced by absolutely positioned descendants with very negative offsets. This can cause undesired scroll adjustments, and has been seen on the web in Gmail. The spec needs to be amended to say what to do here. Chrome currently will clamp the vertical offset. This commit implements a stop-gap to clamp the negative portions to fix this issue, while we do more research and spec-work.
Pushed by firstname.lastname@example.org: https://hg.mozilla.org/integration/mozilla-inbound/rev/c20f8b989a2f Clamp negative portions of relative scroll anchoring bounding rect. r=dholbert
Status: RESOLVED → VERIFIED
Root Cause: --- → ?
You need to log in before you can comment on or make changes to this bug.