Last modified: 2013-12-06 18:55:34 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T39520, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 37520 - using {{WesterBuddhism}} template changes position of image in article
using {{WesterBuddhism}} template changes position of image in article
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
1.21.x
PC Linux
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-06-12 18:38 UTC by Andrew Engelbrecht
Modified: 2013-12-06 18:55 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Andrew Engelbrecht 2012-06-12 18:38:10 UTC
In a firefox 13.0 clone on Trisquel 5.5, the following image gets moved down in the article if the {{WesternBuddhism}} template is included:

http://en.wikipedia.org/wiki/File:Ajaan_Geoff_Almsround.jpg

This diff shows the change:

http://en.wikipedia.org/w/index.php?title=Thanissaro_Bhikkhu&diff=494176678&oldid=465782590

Also, at zoom-level = 1.0, a bullet point floats at the top left corner of the image, while its text starts after the top right of the image. This occurrence may depend upon screen size.
Comment 1 Andre Klapper 2012-10-13 15:06:51 UTC
Confirming on MediaWiki 1.21wmf1 (69cfa2e) and FF 15.0.1.

Looks like the picture is moved to below the level of {{Infobox}} when inserting {{WesternBuddhism}} after {{Infobox}}.
Same happens when inserting {{WesternBuddhism}} before {{Infobox}}: Image will be below an imaginary horizontal line below the {{WesternBuddhism}} template.

Might be a more generic problem.
Comment 2 Brad Jorsch 2013-12-06 18:55:34 UTC
This is the expected behavior according to the CSS standard,[1] and has nothing to do with MediaWiki.

The CSS standard says that the top edge of any float cannot be above the top edge of any other float (in the same block formatting context) that occurs earlier in the HTML source; it makes no difference which side they are floated to. What's happening there is that the right-floated {{WesternBuddhism}} box is pushed down by the right-floated infobox, and therefore the left-floated image that occurs later in the page's HTML source cannot be positioned in the rendered page higher than the top of that pushed-down {{WesternBuddhism}} box.

There's nothing that could be done in MediaWiki generally to work around this, even if we were so inclined. But various wikitext-level workarounds are documented at enwiki's WP:BUNCH.[2]

 [1]: http://www.w3.org/TR/CSS21/visuren.html#float-position
 [2]: https://en.wikipedia.org/wiki/WP:BUNCH

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links