GeometryUtils

The GeometryUtils interface provides different utility function to retrieve geometry information about DOM nodes.

GeometryUtils is a raw interface and no object of this type can be created; it is implemented by TextElementCSSPseudoElement, and Document objects.

Properties

This interface does not implement any properties.

Methods

GeometryUtils.getBoxQuads() This is an experimental API that should not be used in production code.
Returns a list of DOMQuad objects representing the CSS fragments of the node.
GeometryUtils.convertQuadFromNode() This is an experimental API that should not be used in production code.
FIXME: Needs a description
GeometryUtils.convertRectFromNode() This is an experimental API that should not be used in production code.
FIXME: Needs a description
GeometryUtils.convertPointFromNode() This is an experimental API that should not be used in production code.
FIXME: Needs a description

Specifications

Specification Status Comment
CSS Object Model (CSSOM) View Module
The definition of 'GeometryUtils' in that specification.
Working Draft Initial definition

Browser compatibility

BCD tables only load in the browser