side
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental: これは実験的な機能です。
本番で使用する前にブラウザー互換性一覧表をチェックしてください。
side 属性は、テキストが配置されるパスの側を(パス方向から見て相対的に)指定します。
この属性は、次の SVG 要素で使用することができます。
例
html
<svg viewBox="0 0 420 200" xmlns="http://www.w3.org/2000/svg">
<text>
<textPath href="#circle1" side="left">パスの左側</textPath>
</text>
<text>
<textPath href="#circle2" side="right">パスの右側</textPath>
</text>
<circle
id="circle1"
cx="100"
cy="100"
r="70"
fill="transparent"
stroke="silver" />
<circle
id="circle2"
cx="320"
cy="100"
r="70"
fill="transparent"
stroke="silver" />
</svg>
使用上のメモ
| 値 | left | right |
|---|---|
| デフォルト値 | left |
| アニメーション | 可 |
仕様書
| Specification |
|---|
| Scalable Vector Graphics (SVG) 2> # TextPathElementSideAttribute> |