SVGRectElement: x プロパティ
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.
x は SVGRectElement インターフェイスの読み取り専用のプロパティで、 SVG 矩形の位置の水平座標を SVGAnimatedLength として表します。 <coordinate> は、ユーザー座標系で原点からの x 軸方向の距離です。構文は、 <length> と同じです。
これは、<rect> 要素の幾何属性値 x を反映します。CSS のプロパティ x が、SVG の幾何属性 x よりも優先されるため、この値は要素の外観を反映しない場合があります。既定値は 0 です。