Page MenuHomePhabricator

Tables inside divs should not be wrapped in div.noresize
Open, HighPublic2 Estimated Story PointsBUG REPORT

Description

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

What happens?:
The table is being wrapped in a noresize class but this shouldn't happen if the table is itself a direct child of a DIV element.

//

screenshot 706.png (906×1 px, 290 KB)

What should have happened instead?:
The table should not be wrapped with div.noresize as div.ts-wikidata-population-table should act as an opt out.

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

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

Event Timeline

Not ‘breaks on all skins’, breaks in new Vector specifically because of .noresize class. Works fine for me in regular Vector.

Screenshot 2024-06-11 at 6.09.27 PM.png (1×1 px, 1 MB)

That's how it's supposed to display? Huh. Okay.. I had assumed this shouldn't be floated; the heading shouldn't be overlapping infoboxes; and the [20][21] shouldn't be spilling out in Vector.

But, now I look a bit closer at this, it looks like this is not working to spec. The noresize class shouldn't be kicking in at all as the table has a parent div.ts-wikidata-population-table and we said we wouldn't apply this to tables inside div elements. Retagging.

Jdlrobson renamed this task from [Russian Wikipedia] Template:Wikidata/Population isn't responsive - breaks on all skins to Tables inside divs should not be wrapped in div.noresize.Wed, Jun 12, 1:11 AM
Jdlrobson updated the task description. (Show Details)

The caption weirdness on your screenshot seems to be due to trying to fix <caption> issues when a .mw-collapsible table is collapsed (try to remove it: <caption> starts to be displaying one word per line). This should be fixed, yeah. If you know a better way, would be good to fix https://ru.wikipedia.org/wiki/Шаблон:Wikidata/Population/Table/styles.css with it.

There is also some weirdness with how multiple references are displayed, but that I can’t say anything about.

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

[mediawiki/skins/Vector@master] Test case: Tables inside divs should not be wrapped in div.noresize

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

Jdlrobson set the point value for this task to 2.Fri, Jun 14, 7:00 PM