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

Re: [CSS-transforms] rotate(<angle>[, <translation-value>, <translation-value>])

From: Chris Marrin <cmarrin@apple.com>
Date: Thu, 16 Feb 2012 09:20:26 -0800
Cc: Rik Cabanier <cabanier@gmail.com>, "L. David Baron" <dbaron@dbaron.org>, www-style list <www-style@w3.org>
Message-id: <758E7957-9898-462F-B409-8FBDF6F5834D@apple.com>
To: Dirk Schulze <dschulze@adobe.com>

On Feb 15, 2012, at 1:25 PM, Dirk Schulze wrote:

> Hi Rik,
> 
> see inline comments:
> 
> On Feb 15, 2012, at 1:09 PM, Rik Cabanier wrote:
> 
>> Hi Dirk,
>> 
>> just to make it clear to me. The issue you are trying to resolve is if you have content that is like:
>> <HTML>
>> ...
>> <svg>
>> ...
>> <g id='id' transform="rotate(45, 10, 10)">
>> 
>> and you call:
>> getcomputedStyle(document.getElementById("id")).transform
>> 
>> it should return:
>> "rotate(45deg, 10px, 10px)"
> 
> With the current specification it would return a matrix. Like for every function. This is also implemented by all browser that way. But for SVG DOM you would get a rotate as transformation function, yes.

But I don't think the spec requires a matrix, does it? We have an open bug in WebKit to do a better job of returning the original sequence of transform functions when possible.

-----
~Chris
cmarrin@apple.com
Received on Thursday, 16 February 2012 17:21:34 GMT

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