Bug 27066 - -webkit-perspective should be a Length
Summary: -webkit-perspective should be a Length
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Simon Fraser (smfr)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-07 21:15 PDT by Simon Fraser (smfr)
Modified: 2009-07-07 22:27 PDT (History)
1 user (show)

See Also:


Attachments
Patch, testcase, changelog (9.90 KB, text/plain)
2009-07-07 22:14 PDT, Simon Fraser (smfr)
mitz: review+
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Fraser (smfr) 2009-07-07 21:15:17 PDT
-webkit-perspective needs to have units. Maybe we only allow px units here, and we should allow the bare number for backwards compatibility. But we need to define the units.
Comment 1 Simon Fraser (smfr) 2009-07-07 22:14:39 PDT
Created attachment 32427 [details]
Patch, testcase, changelog
Comment 2 mitz 2009-07-07 22:19:33 PDT
Comment on attachment 32427 [details]
Patch, testcase, changelog

+        as pixels for backwards compatibility.

+            // For backward compatibility, treat valueless numbers as px.

backwards?

Presumably this quirk should only apply to the vendor-prefixed version of the property. Perhaps a comment in the parser will help to ensure that it is cleaned up when the prefix is dropped.
Comment 3 Simon Fraser (smfr) 2009-07-07 22:27:21 PDT
http://trac.webkit.org/changeset/45618