blob: d072fb7a08df49ca806900e6f47a1c73fd981fd1 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
#box {
position: absolute;
height: 100px;
width: 100px;
background-color: blue;
clip: rect(10px, 90px, 90px, 10px);
-webkit-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>