blob: b8a3fb53e7bd6bb06d199d955e403c913707d589 [file] [log] [blame]
<!DOCTYPE><!-- webkit-test-runner [ experimental:WebAnimationsCSSIntegrationEnabled=true ] -->
<html>
<head>
<style>
.box {
height: 100px;
width: 100px;
margin: 10px;
border: 3px solid blue;
-webkit-transition-duration: 0.5s;
-webkit-transition-timing-function: linear;
}
#box {
-webkit-transition-property: border-radius;
}
#box.final {
border-top-left-radius: 50px;
}
#box2 {
-webkit-transition-property: -webkit-border-radius;
}
#box2.final {
-webkit-border-top-left-radius: 50px;
}
</style>
<script src="resources/transition-test-helpers.js"></script>
<script>
const expectedValues = [
// [time, element-id, property, expected-value, tolerance]
[0.25, 'box', 'border-top-left-radius', 25, 5],
[0.25, 'box2', '-webkit-border-top-left-radius', 25, 5],
];
function setupTest()
{
document.getElementById('box').className = 'box final';
document.getElementById('box2').className = 'box final';
}
runTransitionTest(expectedValues, setupTest, usePauseAPI);
</script>
</head>
<body>
<div id="box" class="box"></div>
<div id="box2" class="box"></div>
<div id="result">
</div>
</body>
</html>