Perform anchor selection using the visual viewport
Categories
(Core :: Layout: Scrolling and Overflow, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox66 | --- | fixed |
People
(Reporter: rhunt, Assigned: rhunt)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
The current scroll anchoring implementation will use the layout viewport for anchor selection.
This means that:
- An anchor node could be selected some ways above the visual viewport
- Content after the anchor node could change size
- This will cause a shift in the content viewed in the visual viewport
We should select an anchor node using the visual viewport.
Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
I'm going to unblock the initial release of scroll anchoring, as I think the experience is no worse than without scroll anchoring.
It may still make it into the initial release, it just shouldn't block.
Assignee | ||
Comment 2•5 years ago
|
||
Assignee | ||
Comment 3•5 years ago
|
||
This looks like a typo.
Depends on D17048
Pushed by rhunt@eqrion.net: https://hg.mozilla.org/integration/mozilla-inbound/rev/3b192e4631cc Check that a PresShell has a visual viewport offset before returning it. r=botond https://hg.mozilla.org/integration/mozilla-inbound/rev/27bbb318ecb4 Use the visual viewport for anchor node selection. r=botond
Comment 5•5 years ago
|
||
Backed out for reftest failures on gfx/layers/apz/test/reftest/frame-reconstruction-scroll-clamping.html and mochitest failures on layout/generic/test/test_scroll_position_restore.html
backout: https://hg.mozilla.org/integration/mozilla-inbound/rev/812638586b091e02deebdfca44f97a688a8e2fe4
failure log for Reftest: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=223355611&repo=mozilla-inbound&lineNumber=2483
failure log for Mochitest: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=223354803&repo=mozilla-inbound&lineNumber=12145
Assignee | ||
Comment 6•5 years ago
|
||
The problem is in the 'Check that a PresShell has a visual viewport offset before returning it' patch.
From a conversation with Botond on irc, it sounds like the visual viewport size is never set on Desktop, but the visual viewport offset can be. So we're probably running into some untested code. That patch isn't necessary, so I'll just drop it for now.
Pushed by rhunt@eqrion.net: https://hg.mozilla.org/integration/mozilla-inbound/rev/38398e4011d7 Use the visual viewport for anchor node selection. r=botond
Updated•5 years ago
|
![]() |
||
Comment 8•5 years ago
|
||
bugherder |
Description
•