-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Expand file tree
/
Copy pathoffset-path-interpolation-009.html
More file actions
38 lines (36 loc) · 1.73 KB
/
offset-path-interpolation-009.html
File metadata and controls
38 lines (36 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!DOCTYPE HTML>
<link rel="author" title="jj" href="mailto:jj@imput.net">
<link rel="help" href="https://issues.chromium.org/issues/482074624">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/interpolation-testcommon.js"></script>
<body></body>
<script>
test_interpolation({
property: 'offset-path',
from: 'shape(from 0px 0px, curve to 100px 0px with 10% 80% / 90% 80%)',
to: 'shape(from 0px 0px, curve to 100px 0px with 10% 20% / 90% 20%)',
}, [
{at: 0, expect: 'shape(from 0px 0px, curve to 100px 0px with 10% 80% / 90% 80%)'},
{at: 0.5, expect: 'shape(from 0px 0px, curve to 100px 0px with 10% 50% / 90% 50%)'},
{at: 1, expect: 'shape(from 0px 0px, curve to 100px 0px with 10% 20% / 90% 20%)'},
]);
test_interpolation({
property: 'clip-path',
from: 'shape(from 0px 0px, curve to 100px 0px with 10% 80% / 90% 80%)',
to: 'shape(from 0px 0px, curve to 100px 0px with 10% 20% / 90% 20%)',
}, [
{at: 0, expect: 'shape(from 0px 0px, curve to 100px 0px with 10% 80% / 90% 80%)'},
{at: 0.5, expect: 'shape(from 0px 0px, curve to 100px 0px with 10% 50% / 90% 50%)'},
{at: 1, expect: 'shape(from 0px 0px, curve to 100px 0px with 10% 20% / 90% 20%)'},
]);
test_interpolation({
property: 'offset-path',
from: 'shape(from 5px 5px, curve to 50px 50px with 20% 70px / 80% 70px)',
to: 'shape(from 5px 5px, curve to 50px 50px with 20% 30px / 80% 30px)',
}, [
{at: 0, expect: 'shape(from 5px 5px, curve to 50px 50px with 20% 70px / 80% 70px)'},
{at: 0.5, expect: 'shape(from 5px 5px, curve to 50px 50px with 20% 50px / 80% 50px)'},
{at: 1, expect: 'shape(from 5px 5px, curve to 50px 50px with 20% 30px / 80% 30px)'},
]);
</script>