CSSTransformComponent: toString() method

Limited availability

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

The toString() method of the CSSTransformComponent interface is a stringifier returning a CSS Transforms function.

Syntax

js
toString()

Parameters

None.

Return value

A string in the form of a CSS transform function.

This will use the value of is2D to return either a 2D or 3D transform. For example if the component represents CSSRotate and is2D is false then the string returned will be in the form of the CSS transformation rotate3D() function. If true the string returned will be in the form of the 2-dimensional rotate3D() function.

Examples

To Do

Specifications

Specification
CSS Typed OM Level 1
# CSSTransformComponent-stringification-behavior

Browser compatibility

BCD tables only load in the browser