Back to Content

Window: webkitConvertPointFromNodeToPage() method

files/en-us/web/api/window/webkitconvertpointfromnodetopage/index.md

latest1.5 KB
Original Source

{{APIRef}}{{Non-standard_header}}{{Deprecated_Header}}

Given a {{domxref("WebKitPoint")}} specified in a particular DOM {{domxref("Node")}}'s coordinate system, the {{domxref("Window")}} method webkitConvertPointFromNodeToPage() returns a Point which specifies the same position in the page's coordinate system. This method is non-standard and should not be used.

[!WARNING] Please review the Browser compatibility section before using this method, as it's not widely supported (nor is the {{domxref("WebKitPoint")}} object it uses).

Syntax

js-nolint
webkitConvertPointFromNodeToPage(node, nodePoint)

Parameters

  • node
    • : The {{domxref("Node")}} in whose coordinate system the Point specified by nodePoint is described.
  • nodePoint
    • : A {{domxref("WebKitPoint")}} object describing a point in node's coordinate system; this point will be converted to the page's coordinate system.

Return value

A {{domxref("WebKitPoint")}} object specifying a point in the page's coordinate system.

Specifications

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

Browser compatibility

{{Compat}}

See also

  • {{domxref("Window.webkitConvertPointFromPageToNode")}}
  • Mozilla implementation bug: Firefox bug 850806