Closed Bug 740072 Opened 10 years ago Closed 9 years ago

Perspective origin checks the parent frame instead of style parent

Categories

(Core :: Layout, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla15

People

(Reporter: mattwoodrow, Assigned: mattwoodrow)

References

Details

Attachments

(1 file)

We're looking at the wrong style context when looking for perpsective-origin, and thus missing it sometimes. Since this leaves us with the default (50% 50%), our drawing becomes dependent on the size of the parent frame, this test checks this.
Attachment #610217 - Flags: review?(roc)
Comment on attachment 610217 [details] [diff] [review]
Use the style parent for perspective-origin

>+.parentWithPerspective {
>+  -moz-perspective: 100px;
>+  -moz-perspective-origin: 150px 150px;
>+  -webkit-perspective: 100px;
>+  -webkit-perspective-origin: 150px 150px;
>+  /* Changing width/height to 500px should not change the rendering. */
>+  height:100%;
>+}
>...
>+.parentWithPerspective {
>+  -moz-perspective: 100px;
>+  -moz-perspective-origin: 150px 150px;
>+  -webkit-perspective: 100px;
>+  -webkit-perspective-origin: 250px 150px;
>+  /* Changing width/height to 500px should not change the rendering. */
>+  height:500px;
>+}

Is it deliberate that you changed -webkit-perspective-origin from 150px 150px to 250px 150px here?  (Or that you included -webkit- properties at all?)
https://hg.mozilla.org/mozilla-central/rev/1751cbffa708
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla15
You need to log in before you can comment on or make changes to this bug.