Last modified: 2011-09-28 18:16:24 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 T33031, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 31031 - RTL LTR mixed mode on 1.18pre
RTL LTR mixed mode on 1.18pre
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
1.18.x
All All
: Highest normal (vote)
: ---
Assigned To: Robin Pepermans (SPQRobin)
http://test2.wikipedia.org/wiki/Islam...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-09-20 09:22 UTC by Derk-Jan Hartman
Modified: 2011-09-28 18:16 UTC (History)
8 users (show)

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


Attachments
directionality of "hide/show" of toc. (13.13 KB, image/png)
2011-09-20 09:22 UTC, Derk-Jan Hartman
Details
positioning of FlaggedRevs element is always top right (12.71 KB, image/png)
2011-09-20 09:23 UTC, Derk-Jan Hartman
Details
Image positioned at the left but using margins for right aligned element (79.58 KB, image/png)
2011-09-20 09:23 UTC, Derk-Jan Hartman
Details
Screenshot of skin=standard breakage in mixed ltr/rtl mode (342.98 KB, image/png)
2011-09-20 16:54 UTC, Derk-Jan Hartman
Details

Description Derk-Jan Hartman 2011-09-20 09:22:01 UTC
While testing on test2.wikipedia.org I noticed a few issues that need taking care of:
Comment 1 Derk-Jan Hartman 2011-09-20 09:22:29 UTC
Created attachment 9078 [details]
directionality of "hide/show" of toc.
Comment 2 Derk-Jan Hartman 2011-09-20 09:23:06 UTC
Created attachment 9079 [details]
positioning of FlaggedRevs element is always top right
Comment 3 Derk-Jan Hartman 2011-09-20 09:23:46 UTC
Created attachment 9080 [details]
Image positioned at the left but using margins for right aligned element
Comment 4 Derk-Jan Hartman 2011-09-20 09:24:07 UTC
happened both as anon and logged in.
Comment 5 Roan Kattouw 2011-09-20 09:34:21 UTC
The TOC works for me on test2.
Comment 6 Robin Pepermans (SPQRobin) 2011-09-20 12:35:20 UTC
* TOC works for me as well
* The FlaggedRevs position is intended behavior: nothing in the page content area should depend on the user language direction. It is rather the infobox which uses CSS from MediaWiki:Common.css which is flipped (most wikis will need to add @noflip where necessary in their on-wiki CSS).
* Same for the image, it should be at the right side. I'm figuring out why it isn't (I hope it's also due to the on-wiki CSS).
Comment 7 Robin Pepermans (SPQRobin) 2011-09-20 12:39:44 UTC
Ah no, the image is indeed at the left side (..|thumb|left|..), so the margin is changed due to local CSS as well.
Comment 8 Derk-Jan Hartman 2011-09-20 12:45:03 UTC
the toc is due to the <h2> being rtl. that flips the bidi logic on OS X I think. If I make that text latin script, it seems to be working.
Comment 9 Robin Pepermans (SPQRobin) 2011-09-20 13:09:25 UTC
The TOC title issue is fixed with r97622. (Needs merging & software update.)

This bug could be closed, but we might leave it open because I assume more BiDi bugs will pop up :)
Comment 10 Robin Pepermans (SPQRobin) 2011-09-20 13:36:25 UTC
FYI, fixed the CSS for the infobox & image: http://test2.wikipedia.org/w/index.php?title=MediaWiki%3ACommon.css&action=historysubmit&diff=34980&oldid=34681
Comment 11 Amir E. Aharoni 2011-09-20 13:46:19 UTC
I don't quite understand why should this be customized on-wiki and not fixed in the source.

I added this to div.flaggedrevs_short at FlaggedRevs/presentation/modules/flaggedrevs.css :

position: absolute;
right: 0em;
top: -4em;

This fixed the problem nicely for LTR and RTL.

It's a workaround, it's a bit ugly, it may have to be improved a little more, but it's better than customizing Common.css.
Comment 12 Robin Pepermans (SPQRobin) 2011-09-20 13:49:43 UTC
There's no problem with the FlaggedRevs box, it aligns correctly according to the page content direction. The problem was with the infobox using local CSS float:right; which is flipped to float:left; causing the infobox to display at the left side, which is wrong. I added @noflip so the infobox CSS is not flipped. (Same for the image).
Comment 14 Robin Pepermans (SPQRobin) 2011-09-20 15:02:03 UTC
Awesome. You can make the changes already on MediaWiki:Common.css, it won't break anything.
Comment 15 Derk-Jan Hartman 2011-09-20 15:16:28 UTC
Also something that should be tested... 
All the skins...

http://test2.wikipedia.org/wiki/Islam?uselang=he&useskin=standard
Comment 16 Robin Pepermans (SPQRobin) 2011-09-20 15:25:28 UTC
Per IRC, r96760 will be merged (it was a follow-up to a rev that was already merged).
Comment 17 Derk-Jan Hartman 2011-09-20 16:54:08 UTC
Created attachment 9081 [details]
Screenshot of skin=standard breakage in mixed ltr/rtl mode
Comment 18 Robin Pepermans (SPQRobin) 2011-09-20 19:50:41 UTC
Yeah, this has been broken since it exists, see http://he.wikipedia.org/wiki/%D7%A2%D7%9E%D7%95%D7%93_%D7%A8%D7%90%D7%A9%D7%99?useskin=standard&uselang=he 

Fixed it anyway in r97657.
Comment 19 Aaron Schulz 2011-09-27 22:37:12 UTC
What is still needed here?
Comment 20 Siebrand Mazeland 2011-09-28 00:56:01 UTC
Assigned to Robin. Please give it back if you think it shouldn't be :).
Comment 21 Robin Pepermans (SPQRobin) 2011-09-28 18:16:24 UTC
All issues reported here were fixed or followed up. It could be re-opened when new RTL/BiDi regressions appear.

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


Navigation
Links