Style unicodeBidi attribute
- Pagina precedente transitionDelay
- Pagina successiva userSelect
- Torna al livello superiore Oggetto Style HTML DOM
Definition and usage
unicodeBidi
Properties with direction attribute Used together, sets or returns whether text should be overridden to support multiple languages in the same document.
See also:
CSS Tutorial:Testo CSS
CSS Reference Manual:unicode-bidi attribute
Instance
Example 1
Override the text in the <p> element:
document.getElementById("myP").style.unicodeBidi = "bidi-override";
Example 2
Return the unicodeBidi property:
alert(document.getElementById("myP").style.unicodeBidi);
Syntax
Return the unicodeBidi property:
object.style.unicodeBidi
Set the unicodeBidi property:
object.style.unicodeBidi = "normal|embed|bidi-override|initial|inherit"
Attribute value
Value | Description |
---|---|
normal | Do not use additional embedding levels. Default. |
embed | Create additional embedding levels. |
bidi-override | Create additional embedding levels. The reordering depends on the direction property. |
initial | Sets this property to its default value. See initial. |
inherit | Inherits this property from its parent element. See inherit. |
Technical details
Default value: | normal |
---|---|
Return value: | A string that indicates the embedding level relative to the bidirectional algorithm. |
CSS version: | CSS2 |
Browser support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Supporto | Supporto | Supporto | Supporto | Supporto |
- Pagina precedente transitionDelay
- Pagina successiva userSelect
- Torna al livello superiore Oggetto Style HTML DOM