Page MenuHomePhabricator

CSS RTL directions are inverted in multilingual wikis
Closed, InvalidPublic

Description

Hi. When changing page language to rtl on ltr wiki, the css directions are inverted: you need write left for right and right for left.
For example, see "right" in testwiki:Template:IKhitron/ts.css, and the result in testwiki:Template:IKhitron/ts. Thank you.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

When changing page language to rtl on ltr wiki

How to do that? Complete steps to reproduce welcome.

That test page mentions templatestyles. Is this about TemplateStyles ?

When changing page language to rtl on ltr wiki

How to do that? Complete steps to reproduce welcome.

Sure. I just thought there is an only way for not developers. I did it using Special:PageLanguage.

That test page mentions templatestyles. Is this about TemplateStyles ?

No it doesn't. It just helped me to see the error.

It does not matter if there is only one way if you do not describe that one way and everybody has to guess what is the one way... :)

Flipping is usually wanted when swapping between RTL/LTR and noflip gives ability to override this default.
Example where this is useful default:

  • Infoboxes are usually float: left on RTL content, so it make sense to flip .infobox {float:right; } to .infobox {float:left; } in RTL content
  • License template in commons have logo flipped between RTL and LTR languages

Yes, I understand. Thank you for the explanation, @eranroz.