chromium/third_party/blink/web_tests/animations/animation-properties-in-keyframe-are-ignored.html

<!DOCTYPE html>
<html>
<head>
  <style type="text/css" media="screen">
    div#target {
        animation: 4s test;
        background-color: red;
        position: relative;
        width: 100px;
        height: 100px;
    }
    @keyframes test {
        from {
            left: 0px;
            animation-timing-function: linear;
            /* These should be ignored */
            animation-name: bogus;
            animation-duration: 10s;
            animation-iteration-count: 10;
            animation-direction: reverse;
            animation-play-state: paused;
            animation-delay: 10s;
            animation-fill-mode: forwards;
        }       
        to {
            left: 200px;
            animation-timing-function: linear;
            /* These should be ignored */
            animation-name: bogus;
            animation-duration: 10s;
            animation-iteration-count: 10;
            animation-direction: reverse;
            animation-play-state: paused;
            animation-delay: 10s;
            animation-fill-mode: forwards;
        }
    }
  </style>
  <script src="resources/animation-test-helpers.js" type="text/javascript" charset="utf-8"></script>
  <script type="text/javascript" charset="utf-8">
    
    const expectedValues = [
      // [time, element-id, property, expected-value, tolerance]
      [0, "target", "left", 0, 5],
      [1, "target", "left", 50, 5],
      [2, "target", "left", 100, 5],
      [3, "target", "left", 150, 5],
      [4, "target", "left", "0px", 0],
      [5, "target", "left", "0px", 0],
    ];
    
    runAnimationTest(expectedValues);
  </script>
</head>
<body>
<p>Tests that animation properties specified in a keyframe are ignored, with the exception of timing function.</p>
<div id="target"></div>
<div id="result"></div>
</body>
</html>