[css-transforms] computed style of 'transform' property

Hi,

We discussed and decided in the past that the "computed style” of the ‘transform’ property must return the specified value [1]. This has been in the spec since the first WD.

Yet, no browser ever implemented this part of the spec. For what it’s worth, all browsers seems to return a matrix()/matrix3d() string.

Even if we had the agreement from browser implementers in the past to change the behavior, no browser ever did and users are starting to rely on a matrix as returned value.

I suggest we specify the behavior of browsers and do not return the specified value. Implementations must return a string “matrix()” with 6 numerical values on a pure 2D matrix[2] (all transform functions multiplied as in [3]) and a string "matrix3d()” with 16 numerical values otherwise.

Greetings,
Dirk

[1] http://dev.w3.org/csswg/css-transforms/#transform-property
[2] http://dev.w3.org/csswg/css-transforms/#2d-matrix
[3] http://dev.w3.org/csswg/css-transforms/#mathematical-description

Received on Monday, 16 December 2013 09:21:21 UTC