VOOZH about

URL: https://www.geeksforgeeks.org/css/css-unicode-bidi-property/

⇱ CSS unicode-bidi Property - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

CSS unicode-bidi Property

Last Updated : 6 Jun, 2023

The unicode-bidi property in HTML DOM is applied along-with the direction property to determine how the bidirectional text is handled in a document. 

Syntax: 

unicode-bidi: normal|embed|bidi-override|isolate|isolate-override|plaintext|initial|inherit;

Property Values: 

1. normal: It is the default value. The additional level of embedding does not open from the element. 

Syntax: 

unicode-bidi: normal;

Example: 

Output:

 👁 Image

2. embed: This value is used to open an additional level of embedding. 

Syntax: 

unicode-bidi:embed;

Example: 

Output:

 👁 Image

3. bidi-override: This value creates an override for inline element and in case of block element, it creates an override for inline-level descendants not within another block element. 

Syntax:

unicode-bidi:bidi-override;

Example: 

Output:

 👁 Image

4. initial: It sets the unicode-bidi property to its default value. 

Syntax: 

unicode-bidi: initial;

Example: 

Output:

 👁 Image

5. inherit: The unicode-bidi property is inherited from its parent element. 

Syntax: 

unicode-bidi: inherit;

Example: 

Output:

 👁 Image

6. isolate-override: It applies the isolation behavior of the isolate keyword to the surrounding content and the override behavior of the bidi-override to the inner content. 

Syntax: 

unicode-bidi: isolate-override;

7. plaintext: It makes the element directionality calculated without considering its parent bidirectional state or the value of the direction property. 

Syntax:

unicode-bidi: plaintext;

Supported Browsers: The browser supported by unicode-bidi property are listed below:

  • Google Chrome 2.0
  • Edge 12.0
  • Internet Explorer 5.5
  • Firefox 1.0
  • Safari 1.3
  • Opera 9.2
Comment
Article Tags: