I try to apply support for RTL interfaces(locales) in the options window of an extension for firefox. So far, i have tried the following, without success:
In my options.xul (simplified code):
<hbox>
<image id="myImage"/><!-- or image class="myImage" -->
</hbox>
In my css (simplified code):
#myImage:-moz-locale-dir(ltr) { /* or .myImage:-moz-locale-dir(ltr) */
list-style-image: url(chrome://path/image1.png);
}
#myImage:-moz-locale-dir(rtl) { /* or .myImage:-moz-locale-dir(rtl) */
list-style-image: url(chrome://path/image2.png);
}
My interface loads always the image1. For my tests on RTL direction, i have installed some real RTL locales, like Hebrew and the "Force RTL" extension. Any idea why the above does not work? In RTL mode, if i remove the first css entry, the pseudoclass -moz-locale-dir(rtl) does not match, resulting in no image..