SVGRect: y プロパティ
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
y
は SVGRect
インターフェイスのプロパティで、 DOMRect.y
プロパティの別名です。要素の位置の垂直方向の座標を記述します。これは SVG 要素の y
属性と CSS の y
プロパティを反映します。
<coordinate>
は、ユーザー座標系における長さであり、ユーザー座標系の原点から該当する軸(Y 座標の場合は y 軸、X 座標の場合は x 軸)に沿って指定された距離です。構文は <length>
と同じです。
使用コンテキスト
名前 | y |
---|---|
値 |
<length> | <percentage>
|
初期値 | 0 |
適用先 |
<mask> ,
<svg> ,
<rect> ,
<image> ,
<foreignObject>
|
継承 | なし |
パーセント値 | SVG ビューポートのサイズからの相対値 |
メディア | 視覚 |
計算値 | 絶対長またはパーセント値 |
アニメーション | 可 |
仕様書
No specification found
No specification data found for api.SVGRect.y
.
Check for problems with this page or contribute a missing spec_url
to mdn/browser-compat-data. Also make sure the specification is included in w3c/browser-specs.