Търсене в помощните статии

Избягвайте измамите при поддръжката. Никога няма да ви помолим да се обадите или изпратите SMS на телефонен номер или да споделите лична информация. Моля, докладвайте подозрителна активност на "Докладване за злоупотреба".

Learn More

dir() function

  • 4 отговора
  • 3 имат този проблем
  • 6 изгледи
  • Последен отговор от Hamenguai

more options

Please help me with a :dir() function (https://developer.mozilla.org/en-US/docs/Web/CSS/%3Adir ) - that function does not works in the latest versions of Browser, since I need it work for the mixed text content while using Arabic, Persian or Hebrew language. I saw that Browser compatibility is only for 17 — 53 FF versions, but the same function at my webpage successfully works in Chrome and Opera. Can you please support it in the latest versions of Browser or tell me what function can be used instead?

value="ایجاد از روی WLP"

Please help me with a :dir() function (https://developer.mozilla.org/en-US/docs/Web/CSS/%3Adir ) - that function does not works in the latest versions of Browser, since I need it work for the mixed text content while using Arabic, Persian or Hebrew language. I saw that Browser compatibility is only for 17 — 53 FF versions, but the same function at my webpage successfully works in Chrome and Opera. Can you please support it in the latest versions of Browser or tell me what function can be used instead? value="ایجاد از روی WLP"
Прикачени екранни снимки

Избрано решение

You're right. With dir="auto" it is not inverted, but with dir="rtl" it is inverted.

You can create an issue on https://bugzilla.mozilla.org/enter_bug.cgi

Прочетете този отговор в контекста 👍 1

Всички отговори (4)

more options

The doc says, that it works

  • in 17 — 53 with -moz prefix
  • in 49 and above without the prefix

Provided examples are working for me in 59.

more options

Checked in FF59 - an issue is still there. The point is that text "ایجاد از روی WLP" should be inverted to "WLP ایجاد از روی" with that function. And it does happen in Chrome, since does not work in FF.

You can check it here: https://cms.wialon.com/ with credentials firefox_test/1234. Do not forget to change language before login.

html line is following: <input billing="import_export" type="button" id="devices_create_target_wlp" value="ایجاد از روی WLP" style="width: 170px;margin-top: 5px;" dir="auto">

more options

Избрано решение

You're right. With dir="auto" it is not inverted, but with dir="rtl" it is inverted.

You can create an issue on https://bugzilla.mozilla.org/enter_bug.cgi

more options

Reported it here: https://bugzilla.mozilla.org/show_bug.cgi?id=1428316 Thank you so much! Have a nice day!