CSSTransformValue.toMatrix()

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

Draft: This page is not complete.

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

Syntax

var matrix = CSSTransformValue.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

Specification
CSS Typed OM Level 2 (CSS Typed OM 2)
# dom-csstransformvalue-tomatrix

Browser compatibility

BCD tables only load in the browser