SVG 属性リファレンス
SVG 要素は、その要素がどのように処理され描画されるべきかの詳細を指定する属性を使用して変更することができます。
以下は、すべての SVG 属性のリストです。各属性のリンク先のドキュメントでは、どの要素が属性に対応しているか、どのように動作するかを学ぶことができます。
SVG 属性 A to Z
>A
B
C
D
E
F
G
H
I
K
L
M
N
O
P
R
S
scaleseedshape-renderingsideslopespacingspecularConstantspecularExponentspreadMethodstartOffsetstdDeviationstitchTilesstop-colorstop-opacitystrokestroke-dasharraystroke-dashoffsetstroke-linecapstroke-linejoinstroke-miterlimitstroke-opacitystroke-widthstylesurfaceScalesystemLanguage
T
U
V
W
X
Y
Z
カテゴリー別の SVG 属性
>コア属性
コア属性はグローバル属性です。
条件処理属性
条件処理属性は、それが付加された要素が処理されるかどうかを制御します。
XLink 属性
XLink 属性は、リソースを参照することができます。
xlink:href非推奨;xlink:type非推奨;xlink:role非推奨;xlink:arcrole非推奨;xlink:title非推奨;xlink:show非推奨;xlink:actuate非推奨;
プレゼンテーション属性
すべての SVG プレゼンテーション属性が CSS プロパティとして使用できます。
メモ:
これらの属性がプレゼンテーション属性であるかどうかは、それらが設定される要素によって異なります。例えば、x は <circle> に対してはプレゼンテーション属性ですが、<tspan> に対してはそうではありません。これはテキストのベースラインの始点の座標、または値のリストが指定された場合には個々のグリフの x 座標を表します。
alignment-baselinebaseline-shiftclipclip-pathclip-rulecolorcolor-interpolationcolor-interpolation-filterscursorcxcyddirectiondisplaydominant-baselinefillfill-opacityfill-rulefilterflood-colorflood-opacityfont-familyfont-sizefont-size-adjustfont-stretchfont-stylefont-variantfont-weightglyph-orientation-horizontalglyph-orientation-verticalheightimage-renderingletter-spacinglighting-colormarker-endmarker-midmarker-startmaskmask-typeopacityoverflowpointer-eventsrrxryshape-renderingstop-colorstop-opacitystrokestroke-dasharraystroke-dashoffsetstroke-linecapstroke-linejoinstroke-miterlimitstroke-opacitystroke-widthtext-anchortext-decorationtext-overflowtext-renderingtransformtransform-originunicode-bidivector-effectvisibilitywidthwhite-spaceword-spacingwriting-modexy
フィルター属性
アニメーション属性
イベント属性
HTML および SVG のすべての要素は、GlobalEventHandlers ミックスインで定義されたイベントハンドラー属性に対応しています。
イベントハンドラー属性(onblur や onauxclick など)はすべての要素に適用されますが、効果がない場合があります。たとえば、oncuechange 属性は任意の要素に適用できますが、<track> 要素にのみ関連します。
イベントハンドラー属性は推奨されず、安全でないと見なされ、コンテンツセキュリティポリシー (CSP) によってブロックされる可能性があります。代わりに、addEventListener() メソッド内でイベント名を使用してください。