Re: [css-transforms] Making 'transform' match author expectations better with specialized 'rotate'/etc shorthands

On Sun, Jul 13, 2014 at 3:29 PM, Maciej Stachowiak <mjs@apple.com> wrote:
> If we accept Dirk’s #3 above, then doing #1 and #2 (as opposed to solely a predefined order) would not be hard. I don’t know enough to know for sure if it would actually be useful. I know that for rotate vs translate, it makes a huge difference which you do first. Though it seems (I have not double-checked the math) that you could always achieve the other effect by rotating the translation vector. So for the simple transform property subset, you probably don’t need control over the order.

You can, but then you have to adjust your rotation amount as well.
It's not really worth it; I like the idea of a transform-order
property to help control this when necessary (with the same behavior
as paint-order in SVG, where omitted keywords fill in at the end in
their normal order).

As I said in my response to Dirk, though, the translate-then-rotate
order does support what I suspect will be the most common case, where
you're using translates for layout and then rotating the object
independently.

~TJ

Received on Sunday, 13 July 2014 22:49:35 UTC