<path>

<path> SVG要素は図形を定義する汎用的な要素です。全ての基本図形は path 要素によって定義されます。

使用可能な場所

カテゴリーグラフィック要素、図形要素
許可されている内容任意の数、任意の順序の以下の要素。
アニメーション要素
説明的要素
html
<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
  <path
    d="M 10,30
           A 20,20 0,0,1 50,30
           A 20,20 0,0,1 90,30
           Q 90,60 50,90
           Q 10,60 10,30 z" />
</svg>

属性

d

この属性は図形のパスを定義します。 値の型: <string> ; 初期値: ''; アニメーション可否: yes

pathLength (en-US)

この属性は、ユーザ単位系でのパスの全長を指定することを可能にします。 値の型: <number> ; 初期値: none; アニメーション可否: yes

グローバル属性

コア属性

特に: id, tabindex (en-US)

スタイル属性
class (en-US), style (en-US)
条件処理属性

特に: requiredExtensions, systemLanguage (en-US)

イベント属性

グローバルイベント属性, グラフィックイベント属性

プレゼンテーション属性

特に: clip-path (en-US), clip-rule (en-US), color, color-interpolation, color-rendering, cursor (en-US), display (en-US), fill, fill-opacity, fill-rule, filter (en-US), mask, opacity (en-US), pointer-events (en-US), shape-rendering (en-US), stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity (en-US), stroke-width, transform, vector-effect, visibility (en-US)

ARIA 属性

aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-valuetext, role

利用ノート

カテゴリーグラフィック要素、図形要素
許可されている内容任意の数、任意の順序の以下の要素。
アニメーション要素
説明的要素

仕様

Specification
Scalable Vector Graphics (SVG) 2
# PathElement

ブラウザ実装状況

BCD tables only load in the browser

関連情報