W3C home > Mailing lists > Public > www-style@w3.org > October 2009

Units on values for matrix() ?[css3-2d-transforms][css3-3d-transforms]

From: L. David Baron <dbaron@dbaron.org>
Date: Sat, 31 Oct 2009 11:42:06 -0700
To: www-style@w3.org
Message-ID: <20091031184206.GA30483@pickering.dbaron.org>
http://dev.w3.org/csswg/css3-2d-transforms/#transform-functions says
the syntax of matrix() is:
  #  matrix(<number>, <number>, <number>, <number>, <number>,
  #  <number>)  
but it seems like it ought to say:
  #   matrix(<number>, <number>, <number>, <number>,
  #   <translation-value>, <translation-value>)
since the last two entries in the matrix have units of length.  This
is what is implemented in Mozilla.

The same applies to matrix() in
http://dev.w3.org/csswg/css3-3d-transforms/#transform-functions .

However, I'm not sure what should happen to matrix3d() in
http://dev.w3.org/csswg/css3-3d-transforms/#transform-functions ,
though, since three of the values in the matrix have units of
inverse length.

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Saturday, 31 October 2009 18:42:43 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:13:40 UTC