Point

非标
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

Point is an interface, which existed only briefly in the CSS Transforms Level 1 specification, which represents a point in 2-dimensional space. It is non-standard, not broadly compatible, and should not be used.

Although it is not directly related to this defunct interface, you are probably looking for DOMPoint , which is part of the Geometry Interfaces Module Level 1 specification.

特性

x
A floating-point value specifying the point's position with respect to the X (horizontal) axis.
y
A floating-point value specifying the point's position with respect to the Y (vertical) axis.

规范

This class was specified in the defunct 20 March 2009 Working Draft of CSS 2D Transforms Module Level 3 . It is not present in the current working draft of the CSS Transforms Level 1 specification.

浏览器兼容性

更新 GitHub 上的兼容性数据
Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
Point
弃用 非标
Chrome ? Edge ≤18 Firefox No IE ? Opera ? Safari Yes
Prefixed
Yes
Prefixed
Prefixed Implemented with the vendor prefix: WebKit
WebView Android ? Chrome Android ? Firefox Android No Opera Android ? Safari iOS Yes
Prefixed
Yes
Prefixed
Prefixed Implemented with the vendor prefix: WebKit
Samsung Internet Android ?
x
弃用 非标
Chrome ? Edge ≤18 Firefox No IE ? Opera ? Safari Yes WebView Android ? Chrome Android ? Firefox Android No Opera Android ? Safari iOS Yes Samsung Internet Android ?
y
弃用 非标
Chrome ? Edge ≤18 Firefox No IE ? Opera ? Safari Yes WebView Android ? Chrome Android ? Firefox Android No Opera Android ? Safari iOS Yes Samsung Internet Android ?

图例

完整支持
完整支持
不支持
不支持
兼容性未知
兼容性未知
非标。预期跨浏览器支持较差。
非标。预期跨浏览器支持较差。
弃用。不要用于新网站。
弃用。不要用于新网站。
要求使用供应商前缀或不同名称。
要求使用供应商前缀或不同名称。

另请参阅

  1. Point