Page MenuHomePhabricator

Setting direction (LTR/RTL) in div has weird consequences
Closed, ResolvedPublic

Description

In the code for [1] I specified <div dir="rtl">; that works fine when viewing it when the interface language is English [2], but when the interface language is Arabic it changes the direction to LTR [3]. This is on foundationwiki, but it does not seem to happen in metawiki[4][5].

Adding Siebrand and Amir since they will probably know how/what to fix.

[1] http://wikimediafoundation.org/w/index.php?title=Donor_policy/ar&action=edit
[2] http://wikimediafoundation.org/wiki/Donor_policy/ar?uselang=en
[3] http://wikimediafoundation.org/wiki/Donor_policy/ar?uselang=ar
[4] http://meta.wikimedia.org/wiki/Fundraising_2011/Jimmy_Letter_001/ar?uselang=en
[5] http://meta.wikimedia.org/wiki/Fundraising_2011/Jimmy_Letter_001/ar?uselang=ar


Version: unspecified
Severity: normal

Details

Reference
bz31998

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 21 2014, 11:58 PM
bzimport set Reference to bz31998.

Amir is the goto guy here, I think :).

It's not really a MediaWiki bug, but a local configuration issue in wikimediafoundation.org. Its MediaWiki:Common.css must be thoroughly cleaned up. Most of it now consists of rtl fixes, most of which are not needed in 1.18.

I made the minimum fixes required for this to display correctly.

There's another fix that needs to be done. It's funny - my username Amire80 has a permission to edit MediaWiki:Common.css, but not the page you linked to. So please change this line:

<div lang="ar" dir="rtl">

to this:

<div lang="ar" class="mw-content-rtl">