Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

dir() function

  • 4 replies
  • 3 have this problem
  • 7 views
  • Last reply by 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"
Attached screenshots

Chosen solution

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

Read this answer in context 👍 1

All Replies (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

Chosen Solution

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!