DOMPoint: z プロパティ

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.

DOMPoint インターフェイスの z プロパティは、空間内の点の奥行き座標を指定します。

変換によって方向が変更されていない限り、 z が 0 の場合は画面の平面となり、正の値は画面の外側に向かって伸び、負の値は画面の内側へ後退していきます。

この点の z 座標の値を示す倍精度浮動小数点値。この値は無制限であり、無限または無効であることが許されます(つまり、その値は NaN または ±Infinity であってもかまいません)。

仕様書

Specification
Geometry Interfaces Module Level 1
# dom-dompointreadonly-z

ブラウザーの互換性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
z

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

関連情報

  • その他の座標プロパティ: x, y, および視点位置である w