You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[css-transforms] Error in description of transform in Section 3 example 5 #4767
In example 5 of section 3, the first paragraph under the CSS snippet reads "The visual appareance is as if the div element gets translated by 80px to the bottom left direction, then scaled up by 150% and finally rotated by 45°." In addition to the misspelling of "appearance", the
element gets translated by 80px to the bottom right direction. (The diagram underneath the text is correct.)
Each <transform-function> can get represented by a corresponding 4x4 matrix. To map a point from the coordinate space of the <div> box to the coordinate space of the parent element, these transforms get multiplied in the reverse order:
The rotation matrix gets post-multiplied by the scale matrix.
The result of the previous multiplication is then post-multiplied by the translation matrix to create the accumulated transformation matrix.
Finally, the point to map gets pre-multiplied with the accumulated transformation matrix.
As far as I understand, it means that the resulting formula of the above procedure is:
Is there a new TR (or even CR) expected at some point to fix this? Starting at https://www.w3.org/TR/css-transforms-1/ it looks like the latest published version is a Candidate Recommendation is from 20190214, and even the latest editors' draft (August 7, 2023) still has Example 5 claiming that "The visual appearance is as if the div element gets translated by 80px to the bottom left direction,"
I wondered if the perspective were some equivalent of stage-left, from within the screen.
Activity
afdw commentedon Oct 31, 2020
Moreover, this seems to be incorrect:
As far as I understand, it means that the resulting formula of the above procedure is:
pparent = Mrotation × Mscale× Mtranslation × plocal
But the rest of the specification and the Example 1 in particular seems to imply that the formula actually is:
pparent = Mtranslation × Mscale× Mrotation × plocal
Am I getting something wrong or is the example really incorrect?
[css-transforms-1] Fix mistakes in Example 5 (closes w3c#4767)
JimJJewett commentedon Oct 30, 2024
Is there a new TR (or even CR) expected at some point to fix this? Starting at https://www.w3.org/TR/css-transforms-1/ it looks like the latest published version is a Candidate Recommendation is from 20190214, and even the latest editors' draft (August 7, 2023) still has Example 5 claiming that "The visual appearance is as if the div element gets translated by 80px to the bottom left direction,"
I wondered if the perspective were some equivalent of stage-left, from within the screen.