Open mclegrand opened 4 years ago
And I think the <div>
element gets translated by 80px to the bottom right direction, In the event that the direction considered to the bottom left.
Do you have an explanation for this?
And I think the
<div>
element gets translated by 80px to the bottom right direction, In the event that the direction considered to the bottom left. Do you have an explanation for this?
That has to be a minor typo/mistake, there is no way (80,80) can move on a bottom-left diagonal (it's gone in my PR (#5702) btw)
@dbaron @smfr @hober @grorg @dirkschulze
The order of things in example 5 of https://github.com/w3c/csswg-drafts/blob/master/css-transforms-1/Overview.bs#L284 is wrong and contradicts both section 10 and example 2 (which are right), as explained by the following commented file :
(in red : what actually happens "if the div element gets translated by 80px to the bottom left direction, then scaled up by 150% and finally rotated by 45°."; in blue what happens if you just right-add transformations (in particular, you can't get from the translated object to the scaled+translated object with a origin-centered scaling, and you can't get from the translated+scaled one to the final one with a origin-centered rotation )); in green the "natural" mental transformations : take the original object, rotate the result, translate the result
Hence,
The resulting transform is the matrix multiplication of the list of transforms.
(section 10) --which is right--