blob: ffceae0e21a2d1dcaea2e44440a8e161cf3a34d7 [file] [log] [blame]
<!DOCTYPE html>
<meta charset="UTF-8">
<style>
.target {
color: white;
width: 100px;
height: 100px;
background-color: black;
display: inline-block;
overflow: hidden;
}
.replica {
background-color: green;
}
.target div {
width: 10px;
height: 10px;
display: inline-block;
background: orange;
margin: 1px;
}
.test {
overflow: hidden;
}
</style>
<body>
<template id="target-template">
<div></div>
</template>
<script src="../testharness/testharness.js"></script>
<script src="../testharness/testharnessreport.js"></script>
<script src="resources/interpolation-test.js"></script>
<script>
assertInterpolation({
property: 'transform',
prefixedProperty: ['-webkit-transform'],
from: 'skewX(10rad)',
to: 'skewX(20rad)'
}, [
{at: -1, is: 'skewX(0rad)'},
{at: 0, is: 'skewX(10rad)'},
{at: 0.25, is: 'skewX(12.5rad)'},
{at: 0.75, is: 'skewX(17.5rad)'},
{at: 1, is: 'skewX(20rad)'},
{at: 2, is: 'skewX(30rad)'},
]);
assertInterpolation({
property: 'transform',
prefixedProperty: ['-webkit-transform'],
from: 'skewY(10rad)',
to: 'skewY(20rad)'
}, [
{at: -1, is: 'skewY(0rad)'},
{at: 0, is: 'skewY(10rad)'},
{at: 0.25, is: 'skewY(12.5rad)'},
{at: 0.75, is: 'skewY(17.5rad)'},
{at: 1, is: 'skewY(20rad)'},
{at: 2, is: 'skewY(30rad)'},
]);
</script>
</body>