This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 15538 - Row/column need swapping in definition for perspective()
Summary: Row/column need swapping in definition for perspective()
Status: RESOLVED FIXED
Alias: None
Product: CSS
Classification: Unclassified
Component: Transforms (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Dirk Schulze
QA Contact: This bug has no owner yet - up for the taking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-12 20:59 UTC by Aryeh Gregor
Modified: 2012-02-13 16:43 UTC (History)
5 users (show)

See Also:


Attachments

Description Aryeh Gregor 2012-01-12 20:59:27 UTC
"The matrix is computed by starting with an identity matrix and replacing the value at row 3, column 4 with the value -1/depth."
http://dev.w3.org/csswg/css3-3d-transforms/#transform-functions

This should say "row 4, column 3".  This matches both Firefox 12.0a1 and Chrome 17 dev in my testing.  Row 3, column 4 would mean perspective(X) is the same as translateZ(-1/X).
Comment 1 Dirk Schulze 2012-02-12 05:33:03 UTC
I agree. I'll fix that with the next commit.
Comment 2 Dirk Schulze 2012-02-13 03:55:36 UTC
I clarified that with the new mathematical description section.
Comment 3 Aryeh Gregor 2012-02-13 16:43:22 UTC
Great, thanks.