chromium/third_party/blink/web_tests/animations/composition/perspective-origin-composition.html

<!DOCTYPE html>
<style>
.target {
  width: 200px;
  height: 200px;
}
</style>
<body>
<script src="../interpolation/resources/interpolation-test.js"></script>
<script>
assertComposition({
  property: 'perspective-origin',
  underlying: '40px 60px',
  addFrom: '60px 40px',
  addTo: '160px 140px',
}, [
  {at: -0.25, is: '75px 75px'},
  {at: 0, is: '100px 100px'},
  {at: 0.25, is: '125px 125px'},
  {at: 0.5, is: '150px 150px'},
  {at: 0.75, is: '175px 175px'},
  {at: 1, is: '200px 200px'},
  {at: 1.25, is: '225px 225px'},
]);

assertComposition({
  property: 'perspective-origin',
  underlying: 'top 20% left 40%',
  addFrom: 'left 60% top 80%',
  addTo: 'right 80% bottom 40%',
}, [
  {at: -0.25, is: '220px 210px'},
  {at: 0, is: '200px 200px'},
  {at: 0.25, is: '180px 190px'},
  {at: 0.5, is: '160px 180px'},
  {at: 0.75, is: '140px 170px'},
  {at: 1, is: '120px 160px'},
  {at: 1.25, is: '100px 150px'},
]);

assertComposition({
  property: 'perspective-origin',
  underlying: '40px 60px',
  replaceFrom: '100px 200px',
  addTo: '160px 40px',
}, [
  {at: -0.25, is: '75px 225px'},
  {at: 0, is: '100px 200px'},
  {at: 0.25, is: '125px 175px'},
  {at: 0.5, is: '150px 150px'},
  {at: 0.75, is: '175px 125px'},
  {at: 1, is: '200px 100px'},
  {at: 1.25, is: '225px 75px'},
]);

assertComposition({
  property: 'perspective-origin',
  underlying: '40px 60px',
  addFrom: '60px 140px',
  replaceTo: '200px 100px',
}, [
  {at: -0.25, is: '75px 225px'},
  {at: 0, is: '100px 200px'},
  {at: 0.25, is: '125px 175px'},
  {at: 0.5, is: '150px 150px'},
  {at: 0.75, is: '175px 125px'},
  {at: 1, is: '200px 100px'},
  {at: 1.25, is: '225px 75px'},
]);
</script>
</body>