Page MenuHomePhabricator

Fix iOS browsers scroll-to-top when collapsing a section
Closed, ResolvedPublic2 Estimated Story PointsFeature

Description

With useparsoid=0, collapsing a section results in being scrolled all the way to the top.
Looks Safari ends up reporting a 0 offset from those hidden content nodes.

Acceptance criteria:

  • Collapsing a section in old Parsoid output (useparsoid=0) scrolls accurately, putting the just-closed heading at the top

Event Timeline

Change #1215614 had a related patch set uploaded (by Matthias Mullie; author: Matthias Mullie):

[mediawiki/extensions/ReaderExperiments@master] Fix scroll-to-top in iOS browsers

https://gerrit.wikimedia.org/r/1215614

Change #1215614 merged by jenkins-bot:

[mediawiki/extensions/ReaderExperiments@master] Fix scroll-to-top in iOS browsers

https://gerrit.wikimedia.org/r/1215614

Change #1216776 had a related patch set uploaded (by Matthias Mullie; author: Matthias Mullie):

[mediawiki/extensions/ReaderExperiments@master] Fix scroll-on-collapse

https://gerrit.wikimedia.org/r/1216776

egardner triaged this task as High priority.Dec 9 2025, 5:15 PM
matthiasmullie set the point value for this task to 2.Dec 9 2025, 5:16 PM

Change #1216776 merged by jenkins-bot:

[mediawiki/extensions/ReaderExperiments@master] Fix scroll-on-collapse

https://gerrit.wikimedia.org/r/1216776

Change #1216850 had a related patch set uploaded (by Kimberly Sarabia; author: Matthias Mullie):

[mediawiki/extensions/ReaderExperiments@wmf/1.46.0-wmf.5] Fix scroll-on-collapse

https://gerrit.wikimedia.org/r/1216850

Change #1216850 merged by jenkins-bot:

[mediawiki/extensions/ReaderExperiments@wmf/1.46.0-wmf.5] Fix scroll-on-collapse

https://gerrit.wikimedia.org/r/1216850

Mentioned in SAL (#wikimedia-operations) [2025-12-09T21:05:04Z] <egardner@deploy2002> Started scap sync-world: Backport for [[gerrit:1216848|Backport: Instrument sticky header session length to 1.46.0-wmf.5 (T412146)]], [[gerrit:1216850|Fix scroll-on-collapse (T411868 T411869)]], [[gerrit:1216851|Fix heading background positioning (T412054)]]

Mentioned in SAL (#wikimedia-operations) [2025-12-09T21:08:31Z] <egardner@deploy2002> egardner, ksarabia: Backport for [[gerrit:1216848|Backport: Instrument sticky header session length to 1.46.0-wmf.5 (T412146)]], [[gerrit:1216850|Fix scroll-on-collapse (T411868 T411869)]], [[gerrit:1216851|Fix heading background positioning (T412054)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2025-12-09T21:13:29Z] <egardner@deploy2002> Finished scap sync-world: Backport for [[gerrit:1216848|Backport: Instrument sticky header session length to 1.46.0-wmf.5 (T412146)]], [[gerrit:1216850|Fix scroll-on-collapse (T411868 T411869)]], [[gerrit:1216851|Fix heading background positioning (T412054)]] (duration: 08m 26s)

Etonkovidova subscribed.

Checked on enwiki wmf.5, iOS Safari with (and without) userparsoid=0 - the issue is fixed.