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

Unified Diff: LayoutTests/animations/interpolation/webkit-column-width-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-width-interpolation.html
diff --git a/LayoutTests/animations/interpolation/webkit-column-width-interpolation.html b/LayoutTests/animations/interpolation/webkit-column-width-interpolation.html
index 4abc814e959020daca2e2588d1f490b72b18b179..bf05326cfeab5ca8ab90c0052655f8e1875cb4c5 100644
--- a/LayoutTests/animations/interpolation/webkit-column-width-interpolation.html
+++ b/LayoutTests/animations/interpolation/webkit-column-width-interpolation.html
@@ -1,12 +1,15 @@
<!DOCTYPE html>
<meta charset="UTF-8">
<style>
+.parent {
+ -webkit-column-width: 90px;
+}
.target {
- -webkit-column-width: 20px;
column-width: 20px;
width: 600px;
-webkit-column-gap: 20px;
column-gap: 20px;
+ -webkit-column-width: 10px;
}
.expected div {
opacity: 0.7;
@@ -15,19 +18,61 @@
height: 20px;
background-color: green;
}
-
.target div ~ div {
background-color: black;
}
</style>
<body>
<template id='target-template'>
- <div></div><div></div>
+ <div class="parent">
+ <div class="target">
+ <div></div><div></div>
+ </div>
+ </div>
</template>
<script src='resources/interpolation-test.js'></script>
<script>
assertInterpolation({
property: '-webkit-column-width',
+ from: '',
+ to: '40px',
+}, [
+ {at: -0.3, is: '1px'},
+ {at: 0, is: '10px'},
+ {at: 0.3, is: '19px'},
+ {at: 0.6, is: '28px'},
+ {at: 1, is: '40px'},
+ {at: 1.5, is: '55px'},
+]);
+
+assertNoInterpolation({
+ property: '-webkit-column-width',
+ from: 'initial',
+ to: '40px',
+});
+
+assertInterpolation({
+ property: '-webkit-column-width',
+ from: 'inherit',
+ to: '40px',
+}, [
+ {at: -0.3, is: '105px'},
+ {at: 0, is: '90px'},
+ {at: 0.3, is: '75px'},
+ {at: 0.6, is: '60px'},
+ {at: 1, is: '40px'},
+ {at: 1.5, is: '15px'},
+]);
+
+assertNoInterpolation({
+ property: '-webkit-column-width',
+ from: 'unset',
+ to: '40px',
+});
+
+
+assertInterpolation({
+ property: '-webkit-column-width',
from: '1px',
to: '101px'
}, [

Powered by Google App Engine
This is Rietveld 408576698