[CherryPick] WebKit does not reject some cubic-bezier form values for transition-timing-function.
[Title] [CherryPick] WebKit does not reject some cubic-bezier form values for transition-timing-function.
[Issues] TWEB-828, TWEB-828
[Problem] WebKit does not reject some cubic-bezier form values for transition-timing-function.
[Solution] Cherry picked.
[Cherry-Picker] HunseopJeong <hs85.jeong@samsung.com>
WebKit does not reject some cubic-bezier form values for transition-timing-function.
https://bugs.webkit.org/show_bug.cgi?id=106369
Reviewed by Dean Jackson.
Source/WebCore:
http://www.w3.org/TR/css3-transitions/#transition-timing-function-property
describes restricitions on cubic-bezier values where the x values of
the curve should be between [0, 1] and y values can exceed this range.
WebKit was not following the specification by allowing x values
exceeding the range.
The spec also says that we should reject the defintion if the condition
is not respected which is what the new code does.
Test: transitions/transitions-parsing.html
* css/CSSParser.cpp:
(WebCore::CSSParser::parseAnimationTimingFunction):
LayoutTests:
Extended existing tests to cover the bug. Updated an existing test
which was checking wrong values.
* fast/css/transition-timing-function.html: Change the tested values as
they are considered wrong by the spec.
* fast/css/transition-timing-function-expected.txt:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@139106
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
Conflicts:
LayoutTests/ChangeLog
LayoutTests/transitions/transitions-parsing-expected.txt
LayoutTests/transitions/transitions-parsing.html
Source/WebCore/ChangeLog
Change-Id: Icb0de3cc26ac37bb133c03308af50a8c6eb59fb5