SVG/Attribut/direction
Aus SELFHTML-Wiki
Das direction-Präsentationsattribut gibt die Textrichtung an.
- Erlaubte Werte
-
ltr: links nach rechts rtl: rechts nach links
-
- Standardwert
ltr
- anwendbar auf
- Präsentationsattribut
ja
- mit CSS animierbar
ja, siehe Einzelwerte
Beispiel
<svg xmlns="http://www.w3.org/2000/svg" direction="rtl" xml:lang="he"> <title direction="ltr" xml:lang="en">Right-to-left Text</title> <desc direction="ltr" xml:lang="en"> An example for using the 'direction' and 'unicode-bidi' properties in documents that predominantly use right-to-left languages. </desc> <text x="300" y="50" text-anchor="middle" font-size="36"> כתובת MAC:‏ <tspan direction="ltr" unicode-bidi="embed">00-24-AF-2A-55-FC</tspan> </text> </svg>
Empfehlung: Um eine Festlegung von direction zu ermöglichen, muss die Eigenschaft unicode-bidi gesetzt werden.
Siehe auch
Weblinks
- Spezifikation (W3C): Property direction
- MDN: direction
Abgerufen am 23.12.2025
von "http://wiki.selfhtml.org/wiki/SVG/Attribut/direction"