搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

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!