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

Unified Diff: LayoutTests/animations/interpolation/widows-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/widows-interpolation.html
diff --git a/LayoutTests/animations/interpolation/widows-interpolation.html b/LayoutTests/animations/interpolation/widows-interpolation.html
index 6bde24ae703660a1ad736ca5593677f34bafa6a6..ccf78cbb0490a193efd54a338bac51312db9a9a9 100644
--- a/LayoutTests/animations/interpolation/widows-interpolation.html
+++ b/LayoutTests/animations/interpolation/widows-interpolation.html
@@ -1,17 +1,77 @@
<!DOCTYPE html>
<body>
<style>
+.parent {
+ widows: 30;
+}
.target {
- width: 100px;
- height: 100px;
- background-color: black;
- display: inline-block;
+ widows: 10;
}
</style>
<script src="resources/interpolation-test.js"></script>
<script>
assertInterpolation({
property: 'widows',
+ from: '',
+ to: '20',
+}, [
+ {at: -3, is: '1'},
+ {at: -2.5, is: '1'},
+ {at: -0.5, is: '5'},
+ {at: 0, is: '10'},
+ {at: 0.3, is: '13'},
+ {at: 0.6, is: '16'},
+ {at: 1, is: '20'},
+ {at: 1.5, is: '25'},
+]);
+
+assertInterpolation({
+ property: 'widows',
+ from: 'initial',
+ to: '20',
+}, [
+ {at: -3, is: '1'},
+ {at: -2.5, is: '1'},
+ {at: -0.5, is: '1'},
+ {at: 0, is: '1'},
+ {at: 0.3, is: '7'},
+ {at: 0.6, is: '12'},
+ {at: 1, is: '20'},
+ {at: 1.5, is: '30'},
+]);
+
+assertInterpolation({
+ property: 'widows',
+ from: 'inherit',
+ to: '20',
+}, [
+ {at: -3, is: '60'},
+ {at: -2.5, is: '55'},
+ {at: -0.5, is: '35'},
+ {at: 0, is: '30'},
+ {at: 0.3, is: '27'},
+ {at: 0.6, is: '24'},
+ {at: 1, is: '20'},
+ {at: 1.5, is: '15'},
+]);
+
+assertInterpolation({
+ property: 'widows',
+ from: 'unset',
+ to: '20',
+}, [
+ {at: -3, is: '60'},
+ {at: -2.5, is: '55'},
+ {at: -0.5, is: '35'},
+ {at: 0, is: '30'},
+ {at: 0.3, is: '27'},
+ {at: 0.6, is: '24'},
+ {at: 1, is: '20'},
+ {at: 1.5, is: '15'},
+]);
+
+assertInterpolation({
+ property: 'widows',
from: '10',
to: '20'
}, [
@@ -24,6 +84,7 @@ assertInterpolation({
{at: 1, is: '20'},
{at: 1.5, is: '25'}
]);
+
assertInterpolation({
property: 'widows',
from: '2',

Powered by Google App Engine
This is Rietveld 408576698