Page MenuHomePhabricator

Certain images seems to be rendered as SVG vector source causing reader viewport to get completed distorted in certain scenarios
Closed, ResolvedPublicBUG REPORT

Description

Introduction

I think you should stop displaying SVG vector images and replace them with pre-rendered PNG counterparts instead.

Otherwise the results may somethime completely ruin the reading experience. Please see the attachments.

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

  1. Open Polish "Substancja psychoaktywna" article
  2. Scroll down to "Diagram section"
  3. Observe the rendering of an diagram image shown in this section.

What happens?:

The diagram seems to be rendered as a pure SVG and the display gets completely wako.

Labels are distorted and placed in a completely wrong position. Image spans way into horizontal causing reader to allow user to scroll the article in both portrait and horizontal direction (the second one is not normally possible).

What should have happened instead?:

The image should be rendered as PNG or any other precautions should be taken to not disorder the reader viewport.

Software version (skip for WMF-hosted wikis like Wikipedia):

  • Wikipedia for Android: 2.7.50441-r-2023-04-20
  • Phone: Doogee N30
  • Android: 10 (DOOGEE-N30-20200721 / 4.9.190 Kernel Version)

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

Wiki-SVG1.png (1×720 px, 283 KB)

Wiki-SVG2.png (1×720 px, 227 KB)

Event Timeline

Dbrant subscribed.

This issue is not specific to the app; it also appears in mobile web:

Screenshot (May 30, 2023 08_51_53).png (2×1 px, 523 KB)

This seems to be because all of the links have absolute positions on top of the venn-diagram image. And because the mobile web skin adjusts the width of the image to fit the viewport, the absolute positions of the links no longer land on the correct position of the image.

Jdlrobson subscribed.

This is an issue with the underlying template. Please raise this issue on the talk page for the article.

This is what the noresize class is for, so that templates can opt put of resizing, because they rely on CSS positioning which cant support it. En.wp uses this widely.