W3C home > Mailing lists > Public > www-style@w3.org > July 2011

[css3-3d-transforms] Formal definition of 'backface-visibility'

From: L. David Baron <dbaron@dbaron.org>
Date: Tue, 26 Jul 2011 17:18:06 -0700
To: www-style@w3.org
Message-ID: <20110727001806.GA11446@pickering.dbaron.org>
http://dev.w3.org/csswg/css3-3d-transforms/#backface-visibility-property
doesn't have any formal definition of when the "back" of something
is visible.

For example, some obvious possible definitions would be:
 * if the element's transform involves projecting the vector [0 0 1]
   to a result with a negative Z component
 * if the element's cross product of the transform of [1 0 0] and
   the transform of [0 1 0] gives a result with a negative Z
   component
These two give different results in some cases (I think when the
transform matrix has a negative determinant).

Matt Woodrow implemented the latter in Gecko in
https://bugzilla.mozilla.org/show_bug.cgi?id=505115 ; I'm not sure
if that was for compatibility with WebKit.

-David

-- 
𝄞   L. David Baron                         http://dbaron.org/   𝄂
𝄢   Mozilla Corporation               http://www.mozilla.com/   𝄂
Received on Wednesday, 27 July 2011 00:18:42 GMT

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