Bug 51070

Summary: Percentage Z values in 3d transform functions and transform-origin should cause the property to be invalid
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: CSSAssignee: Simon Fraser (smfr) <simon.fraser>
Status: RESOLVED FIXED    
Severity: Normal CC: cmarrin, dino, simon.fraser, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Attachments:
Description Flags
Patch cmarrin: review+

Description Simon Fraser (smfr) 2010-12-14 16:03:13 PST
I just changed the spec to say that % values in the z-component of translate3d(), translateZ() and transform-origin should make the property invalid. We should implement this.
Comment 1 Simon Fraser (smfr) 2010-12-14 22:04:25 PST
This already works for -webkit-transform-origin.
Comment 2 Simon Fraser (smfr) 2010-12-14 22:42:03 PST
Created attachment 76631 [details]
Patch
Comment 3 WebKit Review Bot 2010-12-14 22:43:29 PST
Attachment 76631 [details] did not pass style-queue:

Failed to run "['WebKitTools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/transforms/2d/resources/transform-test-utils.js', u'LayoutTests/transforms/3d/general/3dtransform-values-expected.txt', u'LayoutTests/transforms/3d/general/3dtransform-values.html', u'WebCore/ChangeLog', u'WebCore/css/CSSParser.cpp']" exit_code: 1
WebCore/css/CSSParser.cpp:5006:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
Total errors found: 1 in 6 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 4 Chris Marrin 2010-12-15 12:02:11 PST
Comment on attachment 76631 [details]
Patch

r+ with the comment change to get rid of transform-origin wording. You should also fix the style issue, unless it's just noise from the style bot
Comment 5 Simon Fraser (smfr) 2010-12-15 15:51:11 PST
http://trac.webkit.org/changeset/74156