Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Unified Diff: LayoutTests/animations/interpolation/text-decoration-color-interpolation.html

Issue 1265873002: Add test coverage for interpolations using CSS wide keywords and neutral keyframes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/animations/interpolation/text-decoration-color-interpolation.html
diff --git a/LayoutTests/animations/interpolation/text-decoration-color-interpolation.html b/LayoutTests/animations/interpolation/text-decoration-color-interpolation.html
index 6cd657479d06361f13468153b764b7a1b8d303c3..52359e729914bf1ec158eae9acfd8ce5277b4270 100644
--- a/LayoutTests/animations/interpolation/text-decoration-color-interpolation.html
+++ b/LayoutTests/animations/interpolation/text-decoration-color-interpolation.html
@@ -1,23 +1,88 @@
<!DOCTYPE html>
<meta charset="UTF-8">
<style>
+.container {
+ display: inline-block;
+}
+.parent {
+ text-decoration-color: blue;
+}
.target {
+ font-size: 40px;
color: black;
text-decoration-line: underline;
-webkit-text-fill-color: steelblue;
+ text-decoration-color: orange;
}
.expected {
color: green;
+ margin-right: 10px;
}
</style>
<body>
<template id="target-template">
- <span class="target">TTT</span>
+ <span>Target</span>
</template>
<script src="resources/interpolation-test.js"></script>
<script>
assertInterpolation({
property: 'text-decoration-color',
+ from: '',
+ to: 'green',
+}, [
+ {at: -5, is: 'rgb(255, 255, 0)'},
+ {at: -0.4, is: 'rgb(255, 180, 0)'},
+ {at: 0, is: 'rgb(255, 165, 0)'},
+ {at: 0.2, is: 'rgb(204, 158, 0)'},
+ {at: 0.6, is: 'rgb(102, 143, 0)'},
+ {at: 1, is: 'rgb(0, 128, 0)'},
+ {at: 1.5, is: 'rgb(0, 110, 0)'},
+]);
+
+assertInterpolation({
+ property: 'text-decoration-color',
+ from: 'initial',
+ to: 'green',
+}, [
+ {at: -5, is: 'rgb(255, 140, 255)'},
+ {at: -0.4, is: 'rgb(98, 131, 252)'},
+ {at: 0, is: 'rgb(70, 130, 180)'},
+ {at: 0.2, is: 'rgb(56, 130, 144)'},
+ {at: 0.6, is: 'rgb(28, 129, 72)'},
+ {at: 1, is: 'rgb(0, 128, 0)'},
+ {at: 1.5, is: 'rgb(0, 127, 0)'},
+]);
+
+assertInterpolation({
+ property: 'text-decoration-color',
+ from: 'inherit',
+ to: 'green',
+}, [
+ {at: -5, is: 'rgb(0, 0, 255)'},
+ {at: -0.4, is: 'rgb(0, 0, 255)'},
+ {at: 0, is: 'rgb(0, 0, 255)'},
+ {at: 0.2, is: 'rgb(0, 26, 204)'},
+ {at: 0.6, is: 'rgb(0, 77, 102)'},
+ {at: 1, is: 'rgb(0, 128, 0)'},
+ {at: 1.5, is: 'rgb(0, 192, 0)'},
+]);
+
+assertInterpolation({
+ property: 'text-decoration-color',
+ from: 'unset',
+ to: 'green',
+}, [
+ {at: -5, is: 'rgb(255, 140, 255)'},
+ {at: -0.4, is: 'rgb(98, 131, 252)'},
+ {at: 0, is: 'rgb(70, 130, 180)'},
+ {at: 0.2, is: 'rgb(56, 130, 144)'},
+ {at: 0.6, is: 'rgb(28, 129, 72)'},
+ {at: 1, is: 'rgb(0, 128, 0)'},
+ {at: 1.5, is: 'rgb(0, 127, 0)'},
+]);
+
+assertInterpolation({
+ property: 'text-decoration-color',
from: 'orange',
to: 'blue'
}, [
@@ -32,7 +97,7 @@ assertInterpolation({
assertInterpolation({
property: 'text-decoration-color',
- from: 'initial',
+ from: 'currentColor',
to: 'red'
}, [
{at: -5, is: '#00ffff'},

Powered by Google App Engine
This is Rietveld 408576698