4 <script src=
"../../resources/testharness.js"></script>
5 <script src=
"../../resources/testharnessreport.js"></script>
14 motion-offset: -
200px;
20 motion-offset: inherit;
33 <span id=
"span1" style=
"motion-offset: 25%"></span>
38 assert_equals(getComputedStyle(div1
, null).motionOffset
, '0px');
39 }, 'motion-offset default is 0px');
42 assert_equals(getComputedStyle(div2
, null).motionOffset
, '0px');
43 }, 'motion-offset 0 is 0px');
46 assert_equals(getComputedStyle(div3
, null).motionOffset
, '100px');
47 }, 'motion-offset can be positive');
50 assert_equals(getComputedStyle(div4
, null).motionOffset
, '-200px');
51 }, 'motion-offset allows negative values');
54 assert_equals(getComputedStyle(div5
, null).motionOffset
, '50%');
55 }, 'motion-offset can be a percentage');
58 assert_equals(getComputedStyle(div6
, null).motionOffset
, '50%');
59 }, 'motion-offset can be explicitly inherited');
62 assert_equals(getComputedStyle(div7
, null).motionOffset
, '0px');
63 }, 'motion-offset is not inherited by default');
66 assert_equals(span1
.style
.motionOffset
, '25%');
67 }, 'motion-offset style can be set inline');