W3C home > Mailing lists > Public > public-fx@w3.org > April to June 2014

[css-transforms] translation values without units

From: Dirk Schulze <dschulze@adobe.com>
Date: Fri, 23 May 2014 21:05:54 +0000
To: FX <public-fx@w3.org>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <9EAAB4F3-53F7-4063-831C-AF0A26134704@adobe.com>

> Assuming that <translation-value> can always be converted into a
> <length> 

WebKit allows unit less length values for translation values. Means:

translate(20, 20);
translateX(20);
translateY(20);

are accepted by the CSS parser even if the parser is not in SVG attribute mode. The spec reflects that with <translation-value>.

This is not the case for Firefox, Blink (not even for -webkit-transform) or IE. We probably should change the spec and replace <translation-value> with <length>. Opinions?

Greetings,
Dirk

> 
> ~TJ
Received on Friday, 23 May 2014 21:06:31 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:49:49 UTC