Closed Bug 1458927 Opened 7 years ago Closed 7 years ago

Fix squared distance computation for Perspective.

Categories

(Core :: CSS Parsing and Computation, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla61
Tracking Status
firefox-esr52 --- unaffected
firefox-esr60 --- wontfix
firefox60 --- wontfix
firefox61 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(1 file)

Followup to bug 1458715, which I couldn't land because it broke a test that relied on the specific value.
Comment on attachment 8972908 [details] Bug 1458927: Fix perspective squared distance computation. https://reviewboard.mozilla.org/r/241464/#review247400 Thanks! I believe this is the right thing to do, given that 'perspective' property is defined as animatable as length. (This is for perspective function in transform property though) https://drafts.csswg.org/css-transforms-2/#propdef-perspective
Attachment #8972908 - Flags: review?(hikezoe) → review+
Gosh. I wanted to leave NI to Boris since he can audit this change when we come back. But unfortunately he don't accept NI for now. I am leaving NI to myself instead.
Flags: needinfo?(hikezoe)
Pushed by ecoal95@gmail.com: https://hg.mozilla.org/integration/autoland/rev/d42fb2ba68a4 Fix perspective squared distance computation. r=hiro
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
Boris, I've heard you come back today on July 2nd. I believe the change here is a proper fix, but I'd like you to check this too. Thanks and welcome back!
Flags: needinfo?(hikezoe) → needinfo?(boris.chiou)
This should be fine. We don't have spec to define the distance between two perspective() functions. I used "1/x" for this only because I'd like to compute the distance as the perspective transformed matrix.
Flags: needinfo?(boris.chiou)
Thank you, Boris!
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: