MDN self-hosted library · e01.org

unicode-bidi

The unicode-bidi attribute, together with the direction attribute, 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 browser uses the Unicode bidirectional algorithm to decide how to display the text. The unicode-bidi attribute allows the developer to override this algorithm and control the text em

no runnable cells svg-attribute upstream source

The unicode-bidi attribute, together with the direction attribute, 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 browser uses the Unicode bidirectional algorithm to decide how to display the text. The unicode-bidi attribute allows the developer to override this algorithm and control the text embedding.

[!NOTE] As a presentation attribute, unicode-bidi also has a CSS property counterpart: unicode-bidi. When both are specified, the CSS property takes priority.

Elements

You can use this attribute with the following SVG elements:

  • textPath
  • text
  • tspan

Usage notes

Value See
Default value normal
Animatable No

For a description of the values, please refer to the CSS unicode-bidi property.

Specifications

Browser compatibility

See also

  • CSS unicode-bidi property