Last modified: 2013-01-11 18:39:29 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 T45186, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 43186 - Generated HTML from a centered <gallery> renders incorrectly justified in Firefox and IE, OK in Safari and Chrome
Generated HTML from a centered <gallery> renders incorrectly justified in Fir...
Status: UNCONFIRMED
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
1.21.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-12-17 04:03 UTC by Leonard G.
Modified: 2013-01-11 18:39 UTC (History)
3 users (show)

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


Attachments

Description Leonard G. 2012-12-17 04:03:05 UTC
Greetings:

In reference to a bug originally reported against Firefox:

https://bugzilla.mozilla.org/show_bug.cgi?id=821920

A Mozilla investigator reports that this rendering flaw is also in IE, so it appears to me that the problem would best be addressed by modifying the HTML produced by the MediaWiki software.

The problem can be exhibited by viewing (with Firefox 17):

https://en.wikipedia.org/wiki/User:Leonard_G./sandbox

The work-around hack is to bracket the gallery with <center> and </center> commands.

If the generator recognized gallery's 'align="center"' command and then wrote the equivalent HTML to that generated by bracketing with <center>...</center> the problem would be solved for at least these two browsers, although I do not know what side effects may ensue.

See the above reported Firefox bug for additional information.

Thank you,

- Leonard G.
Comment 1 Andre Klapper 2012-12-17 10:04:19 UTC
Thanks. Wondering: How is this different from bug 43035?
Comment 2 Leonard G. 2012-12-18 06:04:01 UTC
This bug (43186) is specific to rendering via IE and Firefox and concerns the cenering of the gallery.

The other bug (43035) is not browser specific and concerns the failure of an attempt to un-center the caption text in a centered gallery image.
Comment 3 Boris Zbarsky 2013-01-11 18:39:29 UTC
The markup is using <ul align="center"> which happens to center in WebKit, but should do absolutely nothing per spec.

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


Navigation
Links