Re: [css3-transforms] Behavior on UAs without 3D support

On May 1, 2012, at 7:06 pm, Tab Atkins Jr. wrote:

> On Tue, May 1, 2012 at 7:00 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
>> The question here is what should happen with this CSS:
>> 
>>  transform: translate(10px, 0);
>>  transform: translate(5px, 0) rotateY(50deg);
>> 
>> when printing if the print output for the UA can't do 3d transforms for some
>> reason.  Should the element be translated by 10px?  Translated by 5px?
>>  Nothing at all?  Translated by 5px plus some transformation for the
>> rotateY?  Something else?
>> 
>> For a UA that doesn't support 3D transforms at all, the answer would be
>> "translate by 10px", but a UA that does support them has probably only
>> retained the latter declaration when parsing the stylesheet.
> 
> "Rerun the cascade" is a possibility, I suppose…

…which WebKit does when printing anyway, to evaluate print media rules. So
this (using translate(10px, 0)) seems reasonable.

Simon

Received on Wednesday, 2 May 2012 02:42:10 UTC