Re: [css3-3d-transforms] Handling non-invertible matrices

On 09/09/2010, at 9:21 AM, Sylvain Galineau wrote:

> CSS3 2D Transforms specifies the following [1] :
> 
> # In some cases, an animation might cause a transformation matrix to be singular or 
> # non-invertible. For example, an animation in which scale moves from 1 to -1. At the 
> # time when the matrix is in such a state, the transformed element is not rendered.
> 
> I assume the same applies to 3D Transforms ?

Yes.

> 
> What does 'the transformed element is not rendered' mean ? I assume it means the
> the result is equivalent to applying the identity transform but as written it could
> also be saying that the element is not rendered at all. My understanding is that SVG
> does the former and we'd want to do the same here.
> 
> [1] http://dev.w3.org/csswg/css3-2d-transforms/#animation

I don't think we would want to apply the identity transform. If so, the animation above would flash as scale hits 0. And in fact, every element with scale(0) would draw.

I don't think SVG suggests this behaviour, for the same reason. An element with scale(0) or skewX(90) should not appear (not render). It shouldn't render as if there was an identity transform.

Dean

Received on Wednesday, 8 September 2010 23:53:05 UTC