Widely available Supported across all major browsers. Safe to use in production.

Browser support

Feature Desktop Mobile
Chrome
Edge
Firefox
Safari
Chrome Android
Safari iOS
2
12
1
1
18
1
ltr
2
12
1
1
18
1
rtl
2
12
1
1
18
1
Other

The unicode-bidi CSS property, together with the direction property, determines how bidirectional text in a document is handled. For example, if a block of content contains both left-to-right and right-to-left text, the user-agent uses a complex Unicode algorithm to decide how to display the text. The unicode-bidi property overrides this algorithm and…

2
12
1
1.3
18
1
CSS property
bidi-override
2
12
1
1.3
18
1
embed
2
12
1
1.3
18
1
isolate
48
79
50
11
48
11
isolate-override
48
79
50
11
48
11
normal
2
12
1
1.3
18
1
plaintext
48
79
50
11
48
11
1+Supported (version) Not supported Has note Sub-feature descriptions sourced from MDN Web Docs (CC BY-SA 2.5)
Notes 3 item(s)
Compatibility
  • Available with a vendor prefix: -webkit- (16)
Implementation note
  • Before Chrome 47, `-webkit-isolate` could lock up the browser.
  • Since Chrome 19, the syntax from a previous version of the specification, where the `isolate` keyword could be used together with `bidi-override`, is allowed.
Notes 1 item(s)
Compatibility
  • Available with a vendor prefix: -webkit- (79)
Notes 3 item(s)
Removed
  • This feature was removed in a later browser version (54)
Compatibility
  • Available with a vendor prefix: -moz- (10)
Implementation note
  • From Firefox 10 to Firefox 16 (inclusive), the `isolate` keyword could be used together with `bidi-override`, which was the syntax from a previous version of the specification. From Firefox 17, only one value is allowed. Use `isolate-override` instead the previous `isolate bidi-override`.
Notes 2 item(s)
Compatibility
  • Available with a vendor prefix: -webkit- (6)
Implementation note
  • Before Safari 9, `-webkit-isolate` could lock up the browser.
Notes 2 item(s)
Compatibility
  • Available with a vendor prefix: -webkit- (6)
Implementation note
  • Before Safari on iOS 9, `-webkit-isolate` could lock up the browser.
Notes 2 item(s)
Removed
  • This feature was removed in a later browser version (54)
Compatibility
  • Available with a vendor prefix: -moz- (17)
Notes 1 item(s)
Compatibility
  • Available with a vendor prefix: -webkit- (7)
Notes 1 item(s)
Compatibility
  • Available with a vendor prefix: -webkit- (7)
Notes 4 item(s)
Removed
  • This feature was removed in a later browser version (54)
Compatibility
  • Available with a vendor prefix: -moz- (10)
Implementation note
  • Before Firefox 50, the `plaintext` value was ignored for vertical writing modes (bug 1302734).
  • Before Firefox 15, `plaintext` didn't do anything to an inline element. The specification changed and the implementation was changed in Firefox 15.
Notes 1 item(s)
Compatibility
  • Available with a vendor prefix: -webkit- (6)
Notes 1 item(s)
Compatibility
  • Available with a vendor prefix: -webkit- (6)

Syntax

CSS
.rtl-text {
  direction: rtl;
  unicode-bidi: bidi-override;
}
.isolate {
  unicode-bidi: isolate;
}

Live demo

direction: rtl

CSS Direction: rtl demo.

PreviewFullscreen

bidi-override

CSS Bidi-override demo.

PreviewFullscreen

unicode-bidi: isolate

CSS Unicode-bidi: isolate demo.

PreviewFullscreen

Use cases

  • Using Layout direction override

    Warning:

Cautions

  • May not be supported in older browsers.

Accessibility

  • Make sure visual changes are conveyed appropriately to assistive technology.