Commit 46637e69 authored by Xida Chen's avatar Xida Chen Committed by Commit Bot

[Code health] Delete color-option-interpolation.html

All test cases are covered by:
wpt/css/css-color/animation/color-interpolation.html

The last two test cases where -webkit prefix is involved, is already
covered in web_tests/animations/interpolation/color-interpolation.html.

Bug: None
Change-Id: I96379d6005ca81b4d673e05e63d52661009e4a36
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1831263Reviewed-by: default avatarYi Gu <yigu@chromium.org>
Commit-Queue: Xida Chen <xidachen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#701101}
parent 44c50eaa
<!DOCTYPE html>
<meta charset="UTF-8">
<style>
.parent {
color: blue;
}
.target {
display: inline-block;
font-size: 60pt;
color: yellow;
}
.expected {
margin-right: 15px;
}
</style>
<body alink="red" link="blue">
<template id="target-template">
<select>
<option class="target" selected>opt</option>
</select>
</template>
<script src="resources/interpolation-test.js"></script>
<script>
assertInterpolation({
property: 'color',
from: neutralKeyframe,
to: 'green',
}, [
{at: -0.3, is: 'rgb(255, 255, 0)'},
{at: 0, is: 'rgb(255, 255, 0)'},
{at: 0.3, is: 'rgb(179, 217, 0)'},
{at: 0.6, is: 'rgb(102, 179, 0)'},
{at: 1, is: 'rgb(0, 128, 0)'},
{at: 1.5, is: 'rgb(0, 65, 0)'},
]);
assertInterpolation({
property: 'color',
from: 'initial',
to: 'green',
}, [
{at: -0.3, is: 'rgb(0, 0, 0)'},
{at: 0, is: 'rgb(0, 0, 0)'},
{at: 0.3, is: 'rgb(0, 38, 0)'},
{at: 0.6, is: 'rgb(0, 77, 0)'},
{at: 1, is: 'rgb(0, 128, 0)'},
{at: 1.5, is: 'rgb(0, 192, 0)'},
]);
assertInterpolation({
property: 'color',
from: 'black',
to: 'orange',
}, [
{at: -0.3, is: 'rgb(0, 0, 0)'},
{at: 0, is: 'rgb(0, 0, 0)'},
{at: 0.3, is: 'rgb(77, 50, 0)'},
{at: 0.6, is: 'rgb(153, 99, 0)'},
{at: 1, is: 'rgb(255, 165, 0)'},
{at: 1.5, is: 'rgb(255, 248, 0)'},
]);
assertInterpolation({
property: 'color',
from: '-webkit-activelink',
to: 'green',
}, [
{at: -0.3, is: 'rgb(255, 0, 0)'},
{at: 0, is: 'rgb(255, 0, 0)'},
{at: 0.3, is: 'rgb(179, 38, 0)'},
{at: 0.6, is: 'rgb(102, 77, 0)'},
{at: 1, is: 'rgb(0, 128, 0)'},
{at: 1.5, is: 'rgb(0, 192, 0)'},
]);
assertInterpolation({
property: 'color',
from: '-webkit-link',
to: 'green',
}, [
{at: -0.3, is: 'rgb(0, 0, 255)'},
{at: 0, is: 'rgb(0, 0, 255)'},
{at: 0.3, is: 'rgb(0, 38, 179)'},
{at: 0.6, is: 'rgb(0, 77, 102)'},
{at: 1, is: 'rgb(0, 128, 0)'},
{at: 1.5, is: 'rgb(0, 192, 0)'},
]);
</script>
</body>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment