mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
49 lines
1.0 KiB
HTML
Executable File
49 lines
1.0 KiB
HTML
Executable File
<!DOCTYPE html>
|
|
<meta charset="UTF-8">
|
|
<style>
|
|
.target {
|
|
display: inline-block;
|
|
margin-top: 50px;
|
|
margin-bottom: 25px;
|
|
}
|
|
.transformed {
|
|
width: 50px;
|
|
height: 50px;
|
|
background: black;
|
|
transform: rotateY(45deg);
|
|
}
|
|
.replica .transformed {
|
|
background: green;
|
|
}
|
|
.replica {
|
|
position: relative;
|
|
left: -50px;
|
|
opacity: 0.75;
|
|
}
|
|
</style>
|
|
<body>
|
|
<template id="target-template">
|
|
<div><div class="transformed"></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: 'perspective',
|
|
prefixedProperty: ['-webkit-perspective'],
|
|
from: '50px',
|
|
to: '100px'
|
|
}, [
|
|
{at: -20, is: 'none'}, // perspective does not accept 0 or negative values
|
|
{at: -1, is: 'none'}, // perspective does not accept 0 or negative values
|
|
{at: -0.3, is: '35px'},
|
|
{at: 0, is: '50px'},
|
|
{at: 0.3, is: '65px'},
|
|
{at: 0.6, is: '80px'},
|
|
{at: 1, is: '100px'},
|
|
{at: 1.5, is: '125px'}
|
|
]);
|
|
</script>
|
|
</body>
|