Firefox Tomorrow

web api instance method

CSSTransformValue: toMatrix() method

View on MDN ↗

The toMatrix() method of the CSSTransformValue interface returns a DOMMatrix object.

Syntax

toMatrix()

Parameters

None.

Return value

A DOMMatrix object.

Exceptions

  • TypeError
    • : Raised if any lengths involved in generating the matrix are not compatible units with px (such as relative lengths or percentages).

Examples

To Do

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.