Example:
transform:scale(2) translate(50px,50px);
transform:translate(50px,50px) scale(2);
THERE ARE TWO DIFFERENT TRANSFORMS. It cannot be separated to scale and translate.
Living demo: https://jsfiddle.net/p7sb1o6h/
If there will be the same transform, the red and blue rectangle shall be in the same visual position.
The scale, translate, rotate etc. styles (not transforms) shall be removed from all drafts.
The
{
transform:scale(-1) translate(50px,50px);
}
cannot be translated to:
{
scale:-1;
transform:50px 50px;
}
transforms are made in order in which they was defined.
What is order of transformations in this case?
div
{
scale:-1;
}
html div
{
transform:50px 50px;
}