chromium/third_party/blink/web_tests/transitions/clip-transition.html

<!DOCTYPE html>

<html>
<head>
  <style>
    #box {
      position: absolute;
      height: 100px;
      width: 100px;
      background-color: blue;
      clip: rect(10px, 90px, 90px, 10px);
      transition: clip 1s linear;
    }

    #box.changed {
      clip: rect(30px, 70px, 70px, 30px);
    }
  </style>
  <script src="../animations/resources/animation-test-helpers.js"></script>
  <script type="text/javascript">
    
    const expectedValues = [
      // [time, element-id, property, expected-value, tolerance]
      [0.5, 'box', 'clip', [20, 80, 80, 20], 2],
    ];

    function setupTest()
    {
      document.getElementById('box').className = 'changed';
    }

    runTransitionTest(expectedValues, setupTest);
  </script>
</head>
<body>
  <div id="box"></div>
  <div id="result"></div>
</body>
</html>