chromium/third_party/blink/web_tests/animations/svg-attribute-interpolation/svg-startOffset-interpolation-001.html

<!DOCTYPE html>
<html>
<head>
<script src="../../resources/ahem.js"></script>
<style>
:root {
  font: 50px Ahem;
}
</style>
</head>
<body>
<svg>
  <defs>
    <path id="path1" d="m 0 0 h 250 v 250 h -250 z"/>
  </defs>
</svg>
<template id="target-template">
<svg width="7px" height="17px" viewBox="0 0 140 340">
  <text text-anchor="middle">
    <textPath xlink:href="#path1" startOffset="50%" class="target">
      Text on a path
    </textPath>
  </text>
</svg>
</template>
<script src="resources/interpolation-test.js"></script>
<script>
'use strict';
assertAttributeInterpolation({
  property: 'startOffset',
  from: '10in',
  to: '770pt'
}, [
  {at: -0.4, is: '700pt'},
  {at: 0, is: '720pt'},
  {at: 0.2, is: '730pt'},
  {at: 0.6, is: '750pt'},
  {at: 1, is: '770pt'},
  {at: 1.4, is: '790pt'}
]);
assertAttributeInterpolation({
  property: 'startOffset',
  from: '125',
  to: '25ex'
}, [
  {at: 0, is: '125'},
  {at: 1, is: '25ex'},
]);
</script>
</body>
</html>