Auto merge of #16242 - pyfisch:transform-one, r=emilio

Implement serialization for transform functions.

Preserve more information from transform function parsing.
Preserve angle unit while parsing.
Simplify SpecifiedMatrix.
Use the write! macro for formatting with a helper called Css.
Implement ToCss for &T if T implements ToCss.
Add some tests and update others.

closes #15194

<!-- 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 #15194 (github issue number if applicable).

<!-- Either: -->
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- 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/16242)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-04-04 15:30:23 -05:00 committed by GitHub
commit 8747c4e04c
8 changed files with 459 additions and 315 deletions

View file

@ -1,26 +0,0 @@
[css-transform-style-evaluation-validation.htm]
type: testharness
[transform: Check rotate(0) input.]
expected: FAIL
[transform: Check rotateX(0) input.]
expected: FAIL
[transform: Check rotateY(0) input.]
expected: FAIL
[transform: Check rotateZ(0) input.]
expected: FAIL
[transform: Check rotate(string) input.]
expected: FAIL
[transform: Check rotateX(string) input.]
expected: FAIL
[transform: Check rotateY(string) input.]
expected: FAIL
[transform: Check rotateZ(string) input.]
expected: FAIL