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 Text, Element, CSSPseudoElement, and Document objects.
Properties
This interface does not implement any properties.
Methods
GeometryUtils.getBoxQuads()- Returns a list of
DOMQuadobjects 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
We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!
| Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|---|
| Basic support | ? | ? | No support[1] | ? | ? | ? |
| Feature | Android | Edge | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|---|
| Basic support | ? | ? | No support[1] | ? | ? | ? |
[1] Gecko currently only implements the getBoxQuads() method behind the preference layout.css.getBoxQuads.enabled, defaulting to true in Firefox Nightly and to false in all other versions.

