CSSTransformValue: toMatrix()-Methode

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Die toMatrix()-Methode der CSSTransformValue-Schnittstelle gibt ein DOMMatrix-Objekt zurück.

Syntax

js
toMatrix()

Parameter

Keine.

Rückgabewert

Ein DOMMatrix-Objekt.

Ausnahmen

TypeError

Wird ausgelöst, wenn Längen, die an der Erstellung der Matrix beteiligt sind, keine mit px kompatiblen Einheiten haben (wie relative Längen oder Prozentsätze).

Beispiele

To Do

Spezifikationen

Specification
CSS Typed OM Level 1
# dom-csstransformvalue-tomatrix

Browser-Kompatibilität

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
toMatrix

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
See implementation notes.