My website is an RTL (right-to-left, Hebrew) MediaWiki 1.32.0 site with Vector as the desktop theme and MinervaNeue as the mobile theme.
I have included the following code in common.css
to prevent <pre>
LTR (left-to-right) content from aligning to the right edge of the screen on this RTL site. This class has been applied to almost all <pre>
tags on the website:
.preLTR {
direction: ltr;
}
The issue I'm facing is that while <pre>
content in the Vector theme aligns to the left, it doesn't do so in the MinervaNeue theme even though it seems to be accepted in the DOM[1]:
- Even adding
!important
, saving, and clearing cache doesn't resolve the problem.
What could possibly be causing this inconsistency?
Related discussion on the MediaWiki support desk