W3C home > Mailing lists > Public > www-style@w3.org > September 2010

[css3-3d-transforms] matrix3d() uses column-major order, but CSSMatric properties row-major ?

From: Sylvain Galineau <sylvaing@microsoft.com>
Date: Wed, 8 Sep 2010 23:07:54 +0000
To: "www-style@w3.org list" <www-style@w3.org>
Message-ID: <045A765940533D4CA4933A4A7E32597E27CACE75@TK5EX14MBXC120.redmond.corp.microsoft.com>
The matrix3d() transform uses column-major order [1]:

# matrix3d(...)
# specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order.

The CSSMatrix interface, however, describes its property names in row-major order:

# m11-m44 
# of type float Each of these attributes represents one of the values in the 4x4 matrix. For instance 
# m12 represents the value in the 2nd column of the first row.

Is that intentional ?


[1] http://dev.w3.org/csswg/css3-3d-transforms/#transform-functions
Received on Wednesday, 8 September 2010 23:08:33 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:31 GMT