Page MenuHomePhabricator

Hidpi polyfills broken on mobile
Closed, ResolvedPublic

Description

In all MF modes (production/beta/dragons), polyfills of linked inline images are broken.

This is caused by the CSS block:

img.tex,
.image img,
.thumb img {

max-width: 100% !important;
width: auto !important;
height: auto !important;

}

Which conflicts with the polyfill JS, which depends on the original width height attributes being set.


Version: unspecified
Severity: normal

Details

Reference
bz53026

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:57 AM
bzimport set Reference to bz53026.
bzimport added a subscriber: Unknown Object (MLST).

Example page: https://en.wikipedia.org/wiki/Wikipedia:Route_diagram_template, where the majority of the railway diagram icons are shown at double size.

peterwhy wrote:

Some images are enlarged, in 2x device-pixel ratio display

Affected images shown are those with link to their own File page, and those images without link to their own File page are unaffected. Affected images fall into CSS selector ".image img".

Attached:

IMG_2507.PNG (960×640 px, 103 KB)

This is actually a known issue for a while now: 49440.

If jon won't fix this, he should disable the hidpi plugin.

  • This bug has been marked as a duplicate of bug 49440 ***