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

Unified Diff: LayoutTests/animations/interpolation/border-spacing-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-spacing-interpolation.html
diff --git a/LayoutTests/animations/interpolation/border-spacing-interpolation.html b/LayoutTests/animations/interpolation/border-spacing-interpolation.html
index 16ef4952933680813e2b5e4c419225984ca2663c..7ec1269a7a08d5d3392279f2ac37c7f9ed2c0117 100644
--- a/LayoutTests/animations/interpolation/border-spacing-interpolation.html
+++ b/LayoutTests/animations/interpolation/border-spacing-interpolation.html
@@ -1,6 +1,9 @@
<!DOCTYPE html>
<meta charset="UTF-8">
<style>
+.parent {
+ border-spacing: 30px;
+}
.target {
width: 50px;
height: 50px;
@@ -8,6 +11,7 @@
display: inline-block;
margin: 18px;
border-collapse: separate;
+ border-spacing: 10px;
}
.target td {
background-color: white;
@@ -34,6 +38,54 @@
<script>
assertInterpolation({
property: 'border-spacing',
+ from: '',
+ to: '20px',
+}, [
+ {at: -0.3, is: '7px 7px'},
+ {at: 0, is: '10px 10px'},
+ {at: 0.3, is: '13px 13px'},
+ {at: 0.6, is: '16px 16px'},
+ {at: 1, is: '20px 20px'},
+ {at: 1.5, is: '25px 25px'},
+]);
+assertInterpolation({
+ property: 'border-spacing',
+ from: 'initial',
+ to: '20px',
+}, [
+ {at: -0.3, is: '0px 0px'},
+ {at: 0, is: '0px 0px'},
+ {at: 0.3, is: '6px 6px'},
+ {at: 0.6, is: '12px 12px'},
+ {at: 1, is: '20px 20px'},
+ {at: 1.5, is: '30px 30px'},
+]);
+assertInterpolation({
+ property: 'border-spacing',
+ from: 'inherit',
+ to: '20px',
+}, [
+ {at: -0.3, is: '33px 33px'},
+ {at: 0, is: '30px 30px'},
+ {at: 0.3, is: '27px 27px'},
+ {at: 0.6, is: '24px 24px'},
+ {at: 1, is: '20px 20px'},
+ {at: 1.5, is: '15px 15px'},
+]);
+assertInterpolation({
+ property: 'border-spacing',
+ from: 'unset',
+ to: '20px',
+}, [
+ {at: -0.3, is: '33px 33px'},
+ {at: 0, is: '30px 30px'},
+ {at: 0.3, is: '27px 27px'},
+ {at: 0.6, is: '24px 24px'},
+ {at: 1, is: '20px 20px'},
+ {at: 1.5, is: '15px 15px'},
+]);
+assertInterpolation({
+ property: 'border-spacing',
from: '0px',
to: '10px'
}, [

Powered by Google App Engine
This is Rietveld 408576698