blob: acab1675cd81d4a84808a7320cfc4b62b6bf00cc [file] [log] [blame]
<!DOCTYPE html>
<meta charset="UTF-8">
<style>
.target {
width: 100px;
height: 0px;
background-color: black;
display: inline-block;
}
.replica {
background-color: green;
}
</style>
<body>
<script src="resources/interpolation-test.js"></script>
<script>
assertInterpolation({
property: 'min-height',
from: '0px',
to: '100px'
}, [
{at: -0.5, is: '0'}, // CSS min-height can't be negative.
{at: 0, is: '0'},
{at: 0.3, is: '30px'},
{at: 0.6, is: '60px'},
{at: 1, is: '100px'},
{at: 1.5, is: '150px'}
]);
</script>
</body>