Auto merge of #16829 - hiikezoe:disallow-negative-duration, r=emilio

Disallow negative duration for animation and transition

<!-- Please describe your changes on the following line: -->

---
<!-- 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 #15343

<!-- Either: -->
- [X] There are tests for these changes written by @simon-whitehead . Thank you!

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- 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/16829)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-05-13 15:12:15 -05:00 committed by GitHub
commit 4613c0382a
6 changed files with 51 additions and 31 deletions

View file

@ -1,8 +0,0 @@
[transition-duration-001.htm]
type: testharness
[parse '-5s']
expected: FAIL
[parse '-500ms']
expected: FAIL

View file

@ -1,8 +0,0 @@
[transition-duration-001.htm]
type: testharness
[parse '-5s']
expected: FAIL
[parse '-500ms']
expected: FAIL