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

Unified Diff: LayoutTests/animations/interpolation/border-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/border-color-interpolation.html
diff --git a/LayoutTests/animations/interpolation/border-color-interpolation.html b/LayoutTests/animations/interpolation/border-color-interpolation.html
index b7137da53bee4c5bb55c34c7dd3f3c3ac7b9e74d..d952c0c1025e2de9eb6acab8eee2cc59fb89c4d1 100644
--- a/LayoutTests/animations/interpolation/border-color-interpolation.html
+++ b/LayoutTests/animations/interpolation/border-color-interpolation.html
@@ -1,12 +1,16 @@
<!DOCTYPE html>
<meta charset="UTF-8">
<style>
+.parent {
+ border-color: white;
+}
.target {
width: 50px;
height: 50px;
- background-color: black;
+ background-color: blue;
display: inline-block;
- border: 12px solid white;
+ border: 12px solid;
+ border-color: darkblue;
}
.expected {
background-color: green;
@@ -18,6 +22,58 @@
<script>
assertInterpolation({
property: 'border-color',
+ from: '',
+ to: 'orange',
+}, [
+ {at: -0.3, is: 'rgb(0, 0, 181)'},
+ {at: 0, is: 'rgb(0, 0, 139)'},
+ {at: 0.3, is: 'rgb(77, 50, 97)'},
+ {at: 0.6, is: 'rgb(153, 99, 56)'},
+ {at: 1, is: 'rgb(255, 165, 0)'},
+ {at: 1.5, is: 'rgb(255, 248, 0)'},
+]);
+
+assertInterpolation({
+ property: 'border-color',
+ from: 'initial',
+ 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: 'border-color',
+ from: 'inherit',
+ to: 'orange',
+}, [
+ {at: -0.3, is: 'rgb(255, 255, 255)'},
+ {at: 0, is: 'rgb(255, 255, 255)'},
+ {at: 0.3, is: 'rgb(255, 228, 179)'},
+ {at: 0.6, is: 'rgb(255, 201, 102)'},
+ {at: 1, is: 'rgb(255, 165, 0)'},
+ {at: 1.5, is: 'rgb(255, 120, 0)'},
+]);
+
+assertInterpolation({
+ property: 'border-color',
+ from: 'unset',
+ 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: 'border-color',
from: 'white',
to: 'orange'
}, [

Powered by Google App Engine
This is Rietveld 408576698