blob: 8705f82c4ed2ed207020cf17ecbb7dffb2f92ab7 [file] [log] [blame]
<!DOCTYPE html>
<meta charset="UTF-8">
<style>
.target {
display: inline-block;
font-size: 60pt;
color: rgb(50, 50, 50);
}
.expected {
margin-right: 15px;
}
</style>
<body contenteditable>
<template id="target-template">T</template>
<script src="../interpolation/resources/interpolation-test.js"></script>
<script>
assertComposition({
property: 'caret-color',
underlying: 'rgb(50, 50, 50)',
addFrom: 'rgb(100, 100, 100)',
addTo: 'rgb(200, 200, 200)',
}, [
{at: -0.3, is: 'rgb(120, 120, 120)'},
{at: 0, is: 'rgb(150, 150, 150)'},
{at: 0.5, is: 'rgb(200, 200, 200)'},
{at: 1, is: 'rgb(250, 250, 250)'},
{at: 1.5, is: 'rgb(255, 255, 255)'},
]);
assertComposition({
property: 'caret-color',
underlying: 'auto',
addFrom: 'rgb(100, 100, 100)',
addTo: 'rgb(200, 200, 200)',
}, [
{at: -0.3, is: 'rgb(70, 70, 70)'},
{at: 0, is: 'rgb(100, 100, 100)'},
{at: 0.5, is: 'rgb(150, 150, 150)'},
{at: 1, is: 'rgb(200, 200, 200)'},
{at: 1.5, is: 'rgb(250, 250, 250)'},
]);
</script>
</body>