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

Unified Diff: LayoutTests/animations/interpolation/webkit-column-rule-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/webkit-column-rule-color-interpolation.html
diff --git a/LayoutTests/animations/interpolation/webkit-column-rule-color-interpolation.html b/LayoutTests/animations/interpolation/webkit-column-rule-color-interpolation.html
index 70e7714867bf40c72c8769154bf8cd736f67b841..2c3b8c1d701fcba7fe5d42090ae41d4fa6d6769c 100644
--- a/LayoutTests/animations/interpolation/webkit-column-rule-color-interpolation.html
+++ b/LayoutTests/animations/interpolation/webkit-column-rule-color-interpolation.html
@@ -1,29 +1,90 @@
<!DOCTYPE html>
<meta charset="UTF-8">
<style>
+.parent {
+ -webkit-column-rule-color: blue;
+}
.target {
- width: 300px;
- height: 80px;
+ width: 20px;
+ height: 100px;
background-color: black;
display: inline-block;
- margin: 18px;
color: orange;
overflow: hidden;
-webkit-column-rule-style: solid;
+ -webkit-column-rule-width: 10px;
-webkit-column-count: 2;
+ -webkit-column-rule-color: yellow;
}
.expected {
background-color: green;
+ margin-right: 10px;
}
</style>
<body>
<template id="target-template">
- <div>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
+ <div>text text text text text text text text text text text text</div>
</template>
<script src="resources/interpolation-test.js"></script>
<script>
assertInterpolation({
property: '-webkit-column-rule-color',
+ from: '',
+ to: 'lime',
+}, [
+ {at: -5, is: 'rgb(255, 255, 0)'},
+ {at: -0.4, is: 'rgb(255, 255, 0)'},
+ {at: 0, is: 'rgb(255, 255, 0)'},
+ {at: 0.2, is: 'rgb(204, 255, 0)'},
+ {at: 0.6, is: 'rgb(102, 255, 0)'},
+ {at: 1, is: 'rgb(0, 255, 0)'},
+ {at: 1.5, is: 'rgb(0, 255, 0)'},
+]);
+
+assertInterpolation({
+ property: '-webkit-column-rule-color',
+ from: 'initial',
+ to: 'lime',
+}, [
+ {at: -5, is: 'rgb(255, 0, 0)'},
+ {at: -0.4, is: 'rgb(255, 129, 0)'},
+ {at: 0, is: 'rgb(255, 165, 0)'},
+ {at: 0.2, is: 'rgb(204, 183, 0)'},
+ {at: 0.6, is: 'rgb(102, 219, 0)'},
+ {at: 1, is: 'rgb(0, 255, 0)'},
+ {at: 1.5, is: 'rgb(0, 255, 0)'},
+]);
+
+assertInterpolation({
+ property: '-webkit-column-rule-color',
+ from: 'inherit',
+ to: 'lime',
+}, [
+ {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, 51, 204)'},
+ {at: 0.6, is: 'rgb(0, 153, 102)'},
+ {at: 1, is: 'rgb(0, 255, 0)'},
+ {at: 1.5, is: 'rgb(0, 255, 0)'},
+]);
+
+assertInterpolation({
+ property: '-webkit-column-rule-color',
+ from: 'unset',
+ to: 'lime',
+}, [
+ {at: -5, is: 'rgb(255, 0, 0)'},
+ {at: -0.4, is: 'rgb(255, 129, 0)'},
+ {at: 0, is: 'rgb(255, 165, 0)'},
+ {at: 0.2, is: 'rgb(204, 183, 0)'},
+ {at: 0.6, is: 'rgb(102, 219, 0)'},
+ {at: 1, is: 'rgb(0, 255, 0)'},
+ {at: 1.5, is: 'rgb(0, 255, 0)'},
+]);
+
+assertInterpolation({
+ property: '-webkit-column-rule-color',
from: 'orange',
to: 'blue'
}, [

Powered by Google App Engine
This is Rietveld 408576698