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()
Returns a list of DOMQuad objects representing the CSS fragments of the node.
GeometryUtils.convertQuadFromNode()
FIXME: Needs a description
GeometryUtils.convertRectFromNode()
FIXME: Needs a description
GeometryUtils.convertPointFromNode()
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

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support ? ?31 ? ? ?
convertPointFromNode ? ? ? ? ? ?
convertQuadFromNode ? ? ? ? ? ?
convertRectFromNode ? ? ? ? ? ?
getBoxQuads ? ?311 ? ? ?
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support ? ? ?31 ? ? ?
convertPointFromNode ? ? ? ? ? ? ?
convertQuadFromNode ? ? ? ? ? ? ?
convertRectFromNode ? ? ? ? ? ? ?
getBoxQuads ? ? ?311 ? ? ?

1. From version 31: this feature is behind the layout.css.getBoxQuads.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.

Document Tags and Contributors

Contributors to this page: fscholz, Sebastianz
Last updated by: fscholz,