4 <script src=
"../../resources/testharness.js"></script>
5 <script src=
"../../resources/testharnessreport.js"></script>
11 motion-rotation: reverse;
14 motion-rotation:
180deg;
17 motion-rotation:
0rad;
20 motion-rotation: -
400grad auto;
23 motion-rotation:
2turn reverse;
26 motion-rotation: reverse
30deg;
29 motion-rotation: inherit;
43 <div id=
"div10"></div>
45 <span id=
"span1" style=
"motion-rotation: auto -45deg"></span>
51 assert_equals(getComputedStyle(div1
, null).motionRotation
, 'auto 0deg');
52 }, 'motion-rotation default is auto');
55 assert_equals(getComputedStyle(div2
, null).motionRotation
, 'auto 0deg');
56 }, 'motion-rotation auto expands to auto 0deg');
59 assert_equals(getComputedStyle(div3
, null).motionRotation
, 'auto 180deg');
60 }, 'motion-rotation reverse expands to auto 180deg');
63 assert_equals(getComputedStyle(div4
, null).motionRotation
, '180deg');
64 }, 'motion-rotation can be a fixed angle');
67 assert_equals(getComputedStyle(div5
, null).motionRotation
, '0deg');
68 }, 'motion-rotation angles are converted to degrees');
71 assert_equals(getComputedStyle(div6
, null).motionRotation
, 'auto -360deg');
72 }, 'motion-rotation can be supplied with angle before auto');
75 assert_equals(getComputedStyle(div7
, null).motionRotation
, 'auto 900deg');
76 }, 'motion-rotation can be supplied with angle before reverse');
79 assert_equals(getComputedStyle(div8
, null).motionRotation
, 'auto 210deg');
80 }, 'motion-rotation is unaffected by child elements');
83 assert_equals(getComputedStyle(div9
, null).motionRotation
, 'auto 210deg');
84 }, 'motion-rotation can be explicitly inherited');
87 assert_equals(getComputedStyle(div10
, null).motionRotation
, 'auto 0deg');
88 }, 'motion-rotation is not inherited by default');
91 assert_equals(span1
.style
.motionRotation
, 'auto -45deg');
92 }, 'motion-rotation style can be set inline');