Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upKeyword values of timing function should not be computed to bezier function #15086
Labels
Milestone
Comments
|
Yes, I've noticed this. In my understandings, to resolve this we should pass the specified value to set_animation_timing_function() instead of computed one. I guess we need to fix cascade_property() in helpers.mako.rs? Or computed_value for transition_timing_function should have specified value. |
|
I guess for this value we don't need to distinguish computed value from specified value at all. They should simply have the same type. |
bors-servo
added a commit
that referenced
this issue
Apr 27, 2017
Use FunctionKeyword for computed_value of timing function <!-- Please describe your changes on the following line: --> https://bugzilla.mozilla.org/show_bug.cgi?id=1358330 --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #15086 <!-- Either: --> - [X] These changes do not require tests because mozilla-central has test cases. There might be some test cases in servo tree. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16640) <!-- Reviewable:end -->
bors-servo
added a commit
that referenced
this issue
Apr 28, 2017
Use FunctionKeyword for computed_value of timing function <!-- Please describe your changes on the following line: --> https://bugzilla.mozilla.org/show_bug.cgi?id=1358330 --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #15086 <!-- Either: --> - [X] These changes do not require tests because mozilla-central has test cases. There might be some test cases in servo tree. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16640) <!-- Reviewable:end -->
bors-servo
added a commit
that referenced
this issue
Apr 28, 2017
Use FunctionKeyword for computed_value of timing function <!-- Please describe your changes on the following line: --> https://bugzilla.mozilla.org/show_bug.cgi?id=1358330 --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #15086 <!-- Either: --> - [X] These changes do not require tests because mozilla-central has test cases. There might be some test cases in servo tree. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16640) <!-- Reviewable:end -->
bors-servo
added a commit
that referenced
this issue
Apr 28, 2017
Use FunctionKeyword for computed_value of timing function <!-- Please describe your changes on the following line: --> https://bugzilla.mozilla.org/show_bug.cgi?id=1358330 --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #15086 <!-- Either: --> - [X] These changes do not require tests because mozilla-central has test cases. There might be some test cases in servo tree. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16640) <!-- Reviewable:end -->
bors-servo
added a commit
that referenced
this issue
Apr 28, 2017
Use FunctionKeyword for computed_value of timing function <!-- Please describe your changes on the following line: --> https://bugzilla.mozilla.org/show_bug.cgi?id=1358330 --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #15086 <!-- Either: --> - [X] These changes do not require tests because mozilla-central has test cases. There might be some test cases in servo tree. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16640) <!-- Reviewable:end -->
bors-servo
added a commit
that referenced
this issue
Apr 29, 2017
Use FunctionKeyword for computed_value of timing function <!-- Please describe your changes on the following line: --> https://bugzilla.mozilla.org/show_bug.cgi?id=1358330 --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #15086 <!-- Either: --> - [X] These changes do not require tests because mozilla-central has test cases. There might be some test cases in servo tree. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16640) <!-- Reviewable:end -->
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Per spec, the computed value of timing function is same as specified value, and in both Gecko and Blink, the keyword values are perserved in computed value.
Test the following code:
In Gecko and Blink, both alerts show
ease, while in Stylo, the first showseasewhile the second showscubic-bezier(0.25, 0.1, 0.25, 1), which is incorrect.cc @hiikezoe