Re: [css3-transforms] Should the spec have a transform-origin-x/y

Dirk Schulze <> wrote:

>On Sep 27, 2012, at 9:46 AM, "Boris Zbarsky" <bzbarsky@MIT.EDU> wrote:
>> Apparently WebKit implements transform-origin-x and
>> properties.  Should these be in the spec, perhaps?
>They are frequently used. But so far no one had interests in
>implementing beside webkit. (According to various in person
>I don't mind specifying them.

I think we should not specify and implement them. I acknowledge they they are useful, but like all -x and -y properties:

1) if we later decide we sometimes also want to declare things in terms of logical directions, we're stuck, as it isn't possible to simultaneously have a -start and -head. By keeping a single property, things like this stay possible:
transform-origin: start 13px head 10px;

2) users who want them can easily simulate then using varaibles:
* { transform-origin: var(x,0) var(y,0); }
#foo { var-x: 13px; var-y: 42px; }

- Florian

Received on Monday, 1 October 2012 09:00:59 UTC