Bug 1890198 Comment 9 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

(In reply to Robert Longson [:longsonr] from comment #8)
> If you apply a 180 degree rotation it should look at the bottom and right padding instead for instance.

We actually already get the answer correct if you use `padding-right`, though, FWIW -- here's a version of testcase 1 modified to use `padding-right`.

(The padding-right ends up being an offset from the left edge of the page, due to the 180 degree rotation, and we represent that correctly in our CTM, as shown by the correspondence between the green box and red dot here, and by our agreement with Chrome on this testcase.)

Not sure if we get this right just due to luck (and/or things working out "just right" under default transform-origin/transform-box values), vs. because we properly/intentionally account for the padding-right somewhere.
(In reply to Robert Longson [:longsonr] from comment #8)
> If you apply a 180 degree rotation it should look at the bottom and right padding instead for instance.

We actually already get the answer correct if you use `padding-right`, though, FWIW -- here's a version of testcase 1 modified to use `padding-right`.

(Visually, the `padding-right: 12px` ends up being an offset from the left edge of the page, due to the 180 degree rotation; and we represent that correctly as a +12px offset in our CTM, as shown by the correspondence between the green box and red dot here, and by our agreement with Chrome on this testcase.)

Not sure if we get this right just due to luck (and/or things working out "just right" under default transform-origin/transform-box values), vs. because we properly/intentionally account for the padding-right somewhere.

Back to Bug 1890198 Comment 9