Page MenuHomePhabricator

Images shrink / resize on page scrolling in mobile view
Open, In Progress, LowPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:

On loading the page, all images have a sufficient size. But on scrolling down in the table (thus loading all images), once all images are loaded they resize and shrink in some cases to 0px

US Presidents (German Wikipedia)
Before scrollingAfter scrolling
Wikipedia (de) US Präsidenten Washington before scrolling.png (1,035×563 px, 115 KB)
Wikipedia (de) US Präsidenten Washington after scrolling.png (1,047×516 px, 76 KB)
Roman emperors (English Wikipedia)
Before scrollingAfter scrolling
Wikipedia (en) Roman emperors before scrolling.png (1,052×356 px, 72 KB)
Wikipedia (en) Roman emperors after scrolling.png (1,079×348 px, 47 KB)

Here a video

What should have happened instead?:

The images should not resize on scrolling and even if they resize, they should never shrink to 0px.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

The bug was discovered on Firefox Android v149.0.1, but I can replicate it in the following browsers:

  • Firefox (Windows 11) v. 149.0 (enabling mobile view)
  • Chrome (Android) v. 146.0.7680.117
  • Edge (Windows 11) v. 146.0.3856.109 (enabling mobile view)

on the German and English Wikipedia using skin MinervaNeue

Other information (browser name/version, screenshots, etc.):

The bug was first described by me as a comment in T116318 before creating a new ticket

Event Timeline

Andreasmz changed the task status from Open to In Progress.Apr 7 2026, 8:46 AM
Andreasmz claimed this task.

A potential bugfix may be to disable the max-width: 100% !important for wikitables only. This should not disrupt the current layout as tables are designed to be responsive by enabling overflow scrolling in mobile layout. Other parts of the side should not be altered.

See 1268096 in Gerrit

Change #1268096 had a related patch set uploaded (by Jdlrobson; author: Andreasmz):

[mediawiki/skins/MinervaNeue@master] image.less: Fixed image shrinking / resizing in wikitable

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

Thanks for reporting! I can replicate. Seems to kick in around the 12th item.

As mentioned before we are switching to Parsoid very soon so it might not be worth fixing this given it's a longstanding bug in code that will soon be removed (T421550: Drop all MobileFrontend code supporting the legacy parser)