https://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/shared.css?view=markup uses a lot of CSS definitions based on the CSS classes mw-content-ltr or mw-content-rtl. On the preview of [[Special:ExpandTemplates]] the CSS classes mw-content-ltr/mw-content-rtl doesn't exist. So the definitions doesn't work.
Expected result:
The preview should be in a <div class="mw-content-DIR" lang="LANG" dir="DIR"> container based on the direction DIR and the language LANG of the page content language of the context title.
Test case:
<div class="magnify">float right</div>
should aligned right on a ltr wiki and should left aligned on a rtl wiki.
Version: unspecified
Severity: normal
URL: https://www.mediawiki.org/w/index.php?title=Special:ExpandTemplates&contexttitle=MediaWiki:Edit/ar&input=%3Cdiv%20class=%22magnify%22%3Emagnify%3C/div%3EText https://www.mediawiki.org/w/index.php?title=Special:ExpandTemplates&contexttitle=MediaWiki:Edit/en&input=%3Cdiv%20class=%22magnify%22%3Emagnify%3C/div%3EText