blob: 5fc3bdc63ae1e14ccd2de68bf3f3a571dbf87de7 [file] [log] [blame]
<!doctype html>
<title>Test that paused composited animations do not animate</title>
#box {
background-color: coral;
height: 100px;
width: 100px;
opacity: 1.0;
animation-play-state: paused;
animation-duration: 10s;
animation-timing-function: linear;
animation-name: fade;
animation-fill-mode: forwards;
@keyframes fade {
to { opacity: 0.3; }
<script src="resources/animation-test-helpers.js" type="text/javascript"></script>
<script type="text/javascript">
const expectedValues = [
// [time, element-id, property, expected-value, tolerance]
[0.2, "box", "opacity", 1, 0.002],
const doPixelTest = true;
const disablePauseAnimationAPI = true;
runAnimationTest(expectedValues, null, null, disablePauseAnimationAPI, doPixelTest);
<div id="box"></div>
<div id="result"></div>