Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 20 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /svg/path/animations/path-length-interpolation.tentative.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>path-length interpolation</title>
<link rel="help" href="https://svgwg.org/svg2-draft/paths.html#PathLengthProperty"/>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/interpolation-testcommon.js"></script>
<body>
<script>
// Verify that interpolation from 0 clamps at the non-negative boundary.
test_interpolation({
property: 'path-length',
from: '0',
to: '100',
}, [
{at: -0.3, expect: '0'},
{at: 0, expect: '0'},
{at: 0.5, expect: '50'},
{at: 1, expect: '100'},
{at: 1.5, expect: '150'},
]);
</script>
</body>