perspective-origin should ignore values with more then two lengths and use the defaul...
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 31 Oct 2012 15:01:30 +0000 (15:01 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 31 Oct 2012 15:01:30 +0000 (15:01 +0000)
commit3feb441da1e97677d6938412eeae05763267eced
treef7cd0cdf0b19b8888b732f15d9b08279c49c4cde
parent3b10201fb4c6be08fd6a17a7a77ba9a166056544
perspective-origin should ignore values with more then two lengths and use the default values
https://bugs.webkit.org/show_bug.cgi?id=100835

Patch by Zoltan Nyul <zoltan.nyul@intel.com> on 2012-10-31
Reviewed by Kenneth Rohde Christiansen.

Source/WebCore:

Perspective-origin should ignore values with more then two lengths
(http://www.w3.org/TR/css3-transforms/#perspective-origin) and use
the default values instead of parsing it as an unlimited-length list,
of which all but the first two values are ignored. This makes perspective-origin
behave similar to transform-origin which uses default value in this case,
as well as firefox does the same.

Test: transforms/2d/computed-style-origin.html

* css/CSSParser.cpp:
(WebCore::CSSParser::parsePerspectiveOrigin):

LayoutTests:

Add test for perspective-origin with more the than two lengths.

* transforms/2d/computed-style-origin-expected.txt:
* transforms/2d/computed-style-origin.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@133029 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/transforms/2d/computed-style-origin-expected.txt
LayoutTests/transforms/2d/computed-style-origin.html
Source/WebCore/ChangeLog
Source/WebCore/css/CSSParser.cpp