Even though [[https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/9f840963008579a949652040a35362a786312346/resources/src/mediawiki.skinning/toc/screen.less#91 | this line]] should ensure that `.tocnumber .mw-content-rtl` elements have `padding-left: 0.5em;`, we recently noticed that on fawiki they are being rendered with `padding-right: 0.5em;` instead. It seems like `@noflip` is not working correctly. Here is the CSS, as it appears in the browser's console:
```lang=css
.tocnumber {
color:#202122;
padding-right:0;
padding-left:0.5em
}
.mw-content-ltr .tocnumber {
padding-right:0;
padding-left:0.5em
}
.mw-content-rtl .tocnumber {
padding-right:0.5em;
padding-left:0
}
```
The effect of this is that numbers in the TOC are too close to the text that comes after them.
The issue is new. The code above has not changed in a while. The problem must reside somewhere else. Other code that uses @noflip seems not to be affected.
This issue affects all skins. It is not limited to fawiki and is happening in other RTL wikis too (e.g. arwiki) but it does not affect LTR wikis.