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 Status Comment
CSS Typed OM Level 1
The definition of 'toMatrix()' in that specification.
Working Draft Initial definition.

Browser compatibility

BCD tables only load in the browser