Perspective origin checks the parent frame instead of style parent

RESOLVED FIXED in mozilla15

Status

()

Core
Layout
RESOLVED FIXED
6 years ago
5 years ago

People

(Reporter: mattwoodrow, Assigned: mattwoodrow)

Tracking

unspecified
mozilla15
x86
Mac OS X
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

6 years ago
Created attachment 610217 [details] [diff] [review]
Use the style parent for perspective-origin

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)
Attachment #610217 - Flags: review?(roc) → review+
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?)
(Assignee)

Comment 2

5 years ago
https://hg.mozilla.org/integration/mozilla-inbound/rev/1751cbffa708
Assignee: nobody → matt.woodrow
https://hg.mozilla.org/mozilla-central/rev/1751cbffa708
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla15
You need to log in before you can comment on or make changes to this bug.