chromium/third_party/blink/web_tests/animations/3d/transform-perspective.html

<!DOCTYPE html>

<html>
<head>
  <style type="text/css">
    .box {
      height: 100px;
      width: 100px;
      background-color: blue;
    }
    
    #box {
      animation: anim 10s linear;
    }
    
    #box2 {
      animation: anim2 10s linear;
    }

    @keyframes anim {
        from { transform: perspective(100px); }
        to   { transform: perspective(200px); }
    }

    @keyframes anim2 {
        from { transform: perspective(1000px); }
        to   { transform: none; }
    }
  </style>
  <script src="../resources/animation-test-helpers.js" type="text/javascript"></script>
  <script type="text/javascript">
    const expectedValues = [
      // [time, element-id, property, expected-value, tolerance]
      [2.5, "box",  "transform", "matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, -0.0075, 0, 0, 0, 1)", 0.002],
      [2.5, "box2", "transform", "matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, -0.00199, 0, 0, 0, 1)", 0.002],
    ];
    
    function setupTest()
    {
      var box = document.getElementById('box');
      box.style.transform = 'perspective(1000px) rotateX(90deg)';
    }
    
    runAnimationTest(expectedValues);
  </script>
</head>
<body>

<div class="box" id="box"></div>
<div class="box" id="box2"></div>
<div id="result"></div>

</body>
</html>