unicode-bidi
Zusammenfassung
Die unicode-bidi
CSS Eigenschaft zusammen mit der direction
Eigenschaft hat damit zu tun wie bidirektionaler Text in einem Dokument behandelt wird. Zum Beispiel, wenn ein Textblock sowohl Text der von links nach recht als auch von rechts nach links läuft enthält, dann entscheidet das System mithilfe eines komplexen Unicode Algorithmus wie es den Text darstellen soll. Diese Eigenschaft überschreibt den Algorithmus und gibt dem Entwickler die Kontrolle über die Textdarstellung.
Die unicode-bidi
unddirection
Eigenschaften sind die einzigen zwei Werte welche nicht von der all
Kurzform betroffen sind.
Hinweis: Die Eigenschaft ist für DTD Designer gedacht. Web Designer und ähnliche sollten es nicht überschreiben.
Initialwert | normal |
---|---|
Anwendbar auf | Alle Elemente, einige Werte haben keine Wirkung bei non-inline Elementen |
Vererbt | Nein |
Berechneter Wert | wie angegeben |
Animationstyp | diskret |
Syntax
/* Schlüsselwerte */
unicode-bidi: normal;
unicode-bidi: embed;
unicode-bidi: isolate;
unicode-bidi: bidi-override;
unicode-bidi: isolate-override;
unicode-bidi: plaintext;
/* Globale Werte*/
unicode-bidi: inherit;
unicode-bidi: initial;
unicode-bidi: unset;
Werte
normal
- The element does not offer a additional level of embedding with respect to the bidirectional algorithm. For inline elements implicit reordering works across element boundaries.
embed
- If the element is inline, this value opens an additional level of embedding with respect to the bidirectional algorithm. The direction of this embedding level is given by the
direction
property. bidi-override
- For inline elements this creates an override. For block container elements this creates an override for inline-level descendants not within another block container element. This means that inside the element, reordering is strictly in sequence according to the
direction
property; the implicit part of the bidirectional algorithm is ignored. isolate
- This keyword indicates that the element's container directionality should be calculated without considering the content of this element. The element is therefore isolated from its siblings. When applying its bidirectional-resolution algorithm, its container element treats it as one or several
U+FFFC Object Replacement Character
, i.e. like an image. isolate-override
- This keyword applies the isolation behavior of the
isolate
keyword to the surrounding content and the override behavior of thebidi-override
keyword to the inner content. plaintext
- This keyword makes the elements directionality calculated without considering its parent bidirectional state or the value of the
direction
property. The directionality is calculated using the P2 and P3 rules of the Unicode Bidirectional Algorithm.
This value allows to display data which has already formatted using a tool following the Unicode Bidirectional Algorithm.
Formaler Syntax
Beispiele
.bible-quote {
direction: rtl;
unicode-bidi: embed;
}
Spezifikation
Specification | Status | Comment |
---|---|---|
CSS Writing Modes Module Level 3 Die Definition von 'unicode-bidi' in dieser Spezifikation. |
Vorgeschlagene Empfehlung | Added plaintext , isolate , and isolate-override keywords |
CSS Level 2 (Revision 1) Die Definition von 'unicode-bidi' in dieser Spezifikation. |
Empfehlung | Initial definition |
Browser Kompatibilität
BCD tables only load in the browser