W3C home > Mailing lists > Public > www-style@w3.org > February 2012

Re: [css3-2d-transforms] Implementation report

From: Simon Fraser <smfr@me.com>
Date: Wed, 08 Feb 2012 19:53:49 +0100
Cc: www-style@w3.org
Message-id: <A08154FB-C657-449E-B9A1-8417489C1DC7@me.com>
To: Simon Sapin <simon.sapin@kozea.fr>
On Feb 8, 2012, at 5:03 PM, Simon Sapin wrote:

> Hi,
> 
> I just released WeasyPrint[1] 0.5 with (prefixed) support for 2D transforms.
> 
> In the sample document[2] the blue "W3C Recommendation" background image is replaced by a rotated margin box.
> 
> The "current transformation matrix" model is the same as in cairo (which I use for drawing), so the implementation is pretty straight-forward.

Cool!

> I only had two minor issues that were already reported here:
> 
> 1. e and f in matrix(a,b,c,d,e,f) really are lengths, not unit-less numbers

The WG just resolved today to leave 'e' and 'f' unit-less, for better compatibility with matrix3d() and SVG.

> 2. The syntax for transform-origin should probably be unified with background-position.

This was the original intention, but addition of the Z parameter for 3D transforms results in ambiguity. This issue needs to be resolved somehow:
<https://www.w3.org/Bugs/Public/show_bug.cgi?id=15432>.

Simon F.

> 
> 
> [1] http://weasyprint.org/
> [2] http://weasyprint.org/samples/CSS21-intro.pdf
> 
> Regards,
> -- 
> Simon Sapin
> 
Received on Wednesday, 8 February 2012 18:57:51 GMT

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