4 <script src=
"../../resources/testharness.js"></script>
5 <script src=
"../../resources/testharnessreport.js"></script>
11 motion-path: path('M
20 20 H
80 V
30 H
20 L
20 20');
25 <span id=
"span1" style=
"motion-path: path('M 1 2 V 3')"></span>
30 assert_equals(getComputedStyle(div1
, null).motionPath
, 'none');
31 }, 'motion-path default is none');
34 assert_equals(getComputedStyle(div2
, null).motionPath
, 'none');
35 }, 'motion-path can be explicitly none');
38 assert_equals(getComputedStyle(div3
, null).motionPath
, "path('M 20 20 H 80 V 30 H 20 L 20 20')");
39 }, 'motion-path can be an SVG Path data string');
42 assert_equals(getComputedStyle(div4
, null).motionPath
, "path('M 20 20 H 80 V 30 H 20 L 20 20')");
43 }, 'motion-path can be explicitly inherited');
46 assert_equals(getComputedStyle(div5
, null).motionPath
, 'none');
47 }, 'motion-path is not inherited by default');
50 assert_equals(span1
.style
.motionPath
, "path('M 1 2 V 3')");
51 }, 'motion-path style can be set inline');