blob: 5b1fe061687f02882520ae41c270051649394c97 [file] [log] [blame]
<!DOCTYPE><!-- webkit-test-runner [ experimental:WebAnimationsCSSIntegrationEnabled=false ] -->
<html>
<head>
<style>
.box {
height: 100px;
width: 100px;
margin: 10px;
background-color: white;
-webkit-transition-property: width;
}
.box {
-webkit-transition: 2s;
}
#box.final {
background-color: black;
}
</style>
<script src="resources/transition-test-helpers.js"></script>
<script type="text/javascript">
const expectedValues = [
// [time, element-id, property, expected-value, tolerance]
[0.5, 'box', 'background-color', [153, 153, 153], 4],
];
function setupTest()
{
document.getElementById('box').className = 'box final';
}
runTransitionTest(expectedValues, setupTest, usePauseAPI);
</script>
</head>
<body>
<div id="box" class="box"></div>
<div id="result">
</div>
</body>
</html>