OLD | NEW |
1 | 1 |
2 This is a test of precedency between CSS and SVG transform | 2 This is a test of precedency between CSS and SVG transform |
3 | 3 |
4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
5 | 5 |
6 | 6 |
7 Also, to pass the test, the rectangle should be rotated with 45deg | 7 Also, to pass the test, the rectangle should be rotated with 45deg |
8 | 8 |
9 | 9 |
10 Test SVGTransformList interface | 10 Test SVGTransformList interface |
11 PASS circle.transform.baseVal.numberOfItems is 0 | 11 PASS circle.transform.baseVal.numberOfItems is 0 |
12 PASS circle.getAttribute('transform') is null | 12 PASS circle.getAttribute('transform') is null |
13 PASS rect.transform.baseVal.numberOfItems is 2 | 13 PASS rect.transform.baseVal.numberOfItems is 2 |
14 PASS rect.getAttribute('transform') is "translate(1000, 1000) rotate(90)" | 14 PASS rect.getAttribute('transform') is "translate(1000, 1000) rotate(90)" |
15 PASS dumpTransform(rect.transform.baseVal.getItem(0)) is "type=SVG_TRANSFORM_TRA
NSLATE matrix=[1.0 0.0 0.0 1.0 1000.0 1000.0]" | 15 PASS dumpTransform(rect.transform.baseVal.getItem(0)) is "type=SVG_TRANSFORM_TRA
NSLATE matrix=[1.0 0.0 0.0 1.0 1000.0 1000.0]" |
16 PASS dumpTransform(rect.transform.baseVal.getItem(1)) is "type=SVG_TRANSFORM_ROT
ATE matrix=[0.0 1.0 -1.0 0.0 0.0 0.0]" | 16 PASS dumpTransform(rect.transform.baseVal.getItem(1)) is "type=SVG_TRANSFORM_ROT
ATE matrix=[0.0 1.0 -1.0 0.0 0.0 0.0]" |
17 | 17 |
18 Test SVGLocatable interface | 18 Test SVGLocatable interface |
19 PASS dumpMatrix(circle.getCTM()) is "[2.0 0.0 0.0 2.0 20.0 20.0]" | 19 PASS dumpMatrix(circle.getCTM()) is "[2.0 0.0 0.0 2.0 20.0 20.0]" |
20 PASS dumpMatrix(circle.getScreenCTM()) is "[2.0 0.0 0.0 2.0 28.0 28.0]" | 20 PASS dumpMatrix(circle.getScreenCTM()) is "[2.0 0.0 0.0 2.0 28.0 28.0]" |
21 PASS dumpRect(circle.getBBox()) is "[0 0 80 80]" | 21 PASS dumpRect(circle.getBBox()) is "[0 0 80 80]" |
22 PASS dumpMatrix(circle.getTransformToElement(circle)) is "[1.0 0.0 0.0 1.0 0.0 0
.0]" | |
23 PASS dumpMatrix(rect.getCTM()) is "[0.7 0.7 -0.7 0.7 100.0 0.0]" | 22 PASS dumpMatrix(rect.getCTM()) is "[0.7 0.7 -0.7 0.7 100.0 0.0]" |
24 PASS dumpMatrix(rect.getScreenCTM()) is "[0.7 0.7 -0.7 0.7 312.0 8.0]" | 23 PASS dumpMatrix(rect.getScreenCTM()) is "[0.7 0.7 -0.7 0.7 312.0 8.0]" |
25 PASS dumpRect(rect.getBBox()) is "[40 40 100 100]" | 24 PASS dumpRect(rect.getBBox()) is "[40 40 100 100]" |
26 PASS dumpMatrix(rect.getTransformToElement(rect)) is "[1.0 0.0 0.0 1.0 0.0 0.0]" | |
27 | 25 |
28 Test CSSMatrix | 26 Test CSSMatrix |
29 PASS circle.style.webkitTransform is "scale(2, 2) translate(10px, 10px)" | 27 PASS circle.style.webkitTransform is "scale(2, 2) translate(10px, 10px)" |
30 PASS dumpMatrix(new WebKitCSSMatrix(circle.style.webkitTransform)) is "[2.0 0.0
0.0 2.0 20.0 20.0]" | 28 PASS dumpMatrix(new WebKitCSSMatrix(circle.style.webkitTransform)) is "[2.0 0.0
0.0 2.0 20.0 20.0]" |
31 PASS rect.style.webkitTransform is "translate(100px) rotate(45deg)" | 29 PASS rect.style.webkitTransform is "translate(100px) rotate(45deg)" |
32 PASS dumpMatrix(new WebKitCSSMatrix(rect.style.webkitTransform)) is "[0.7 0.7 -0
.7 0.7 100.0 0.0]" | 30 PASS dumpMatrix(new WebKitCSSMatrix(rect.style.webkitTransform)) is "[0.7 0.7 -0
.7 0.7 100.0 0.0]" |
33 | 31 |
34 PASS dumpMatrix(new WebKitCSSMatrix(circle.style.webkitTransform)) is dumpMatrix
(circle.getCTM()) | 32 PASS dumpMatrix(new WebKitCSSMatrix(circle.style.webkitTransform)) is dumpMatrix
(circle.getCTM()) |
35 PASS dumpMatrix(new WebKitCSSMatrix(rect.style.webkitTransform)) is dumpMatrix(r
ect.getCTM()) | 33 PASS dumpMatrix(new WebKitCSSMatrix(rect.style.webkitTransform)) is dumpMatrix(r
ect.getCTM()) |
36 | 34 |
37 PASS successfullyParsed is true | 35 PASS successfullyParsed is true |
38 | 36 |
39 TEST COMPLETE | 37 TEST COMPLETE |
40 | 38 |
OLD | NEW |