blob: 87352072565871b445654279265373fa82e6ef38 [file] [log] [blame]
<!DOCTYPE><!-- webkit-test-runner [ enableCSSAnimationsAndCSSTransitionsBackedByWebAnimations=true ] -->
<html>
<head>
<title>Singular scale</title>
<style type="text/css" media="screen">
#box {
height: 200px;
width: 200px;
border: 1px solid black;
}
#inner {
height: 200px;
width: 200px;
background-color: gray;
-webkit-transform: scale(0);
-webkit-transition: -webkit-transform 1s linear;
}
#box.final #inner {
-webkit-transform: scale(1);
}
#box:hover #inner {
-webkit-transform: scale(1);
}
</style>
<script src="../../transitions/resources/transition-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.5, 'inner', '-webkit-transform.0', 0.5, 0.1],
];
function setupTest()
{
var box = document.getElementById('box');
box.className = 'final';
}
runTransitionTest(expectedValues, setupTest, true, true /* pixel test */);
</script>
</head>
<body>
<p>Check the pixel result to make sure that the gray square is half way through the scale animation.</p>
<div id="box">
<div id="inner">
</div>
</div>
<div id="result"></div>
</body>
</html>