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

Re: webkit-transform translate values clipped to integers?

From: Chris Marrin <cmarrin@apple.com>
Date: Tue, 18 Jan 2011 16:09:09 -0800
Cc: Dan Clark <dclark@adobe.com>, "www-style@w3.org" <www-style@w3.org>
Message-id: <DB18D107-552F-4689-862C-8B93D8226E6D@apple.com>
To: Boris Zbarsky <bzbarsky@MIT.EDU>

On Jan 17, 2011, at 5:40 PM, Boris Zbarsky wrote:

> On 1/17/11 8:25 PM, Dan Clark wrote:
>> We have observed that
>>    -webkit-transform: translate(14.95px, -12.95px) clips to integers. It is
>> equivalent to
>>    -webkit-transform: translate(14px,-12px).
>> Is this expected? Is there any way top get translate to not clip the values?
>> Is there any documentation on this behavior? Would using something besides
>> px help?
> 
> Sounds like the usual webkit bug where all CSS lengths are clipped to integer pixels...  I admit it's particularly weird for transforms, though, since as you say the matrix() notation works fine.  On the other hand, maybe the length production parser in webkit is what does the integer thing?

Right. lengths are getting clipped but raw numbers are not. 

-----
~Chris
cmarrin@apple.com
Received on Wednesday, 19 January 2011 00:10:11 GMT

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