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

Unified Diff: LayoutTests/animations/interpolation/orphans-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/orphans-interpolation.html
diff --git a/LayoutTests/animations/interpolation/orphans-interpolation.html b/LayoutTests/animations/interpolation/orphans-interpolation.html
index 173f84d322777fb5c24b38b9a2bbbba3f30ab21c..daf3b867cf00973b2f4d7a94d33b7212b8a30681 100644
--- a/LayoutTests/animations/interpolation/orphans-interpolation.html
+++ b/LayoutTests/animations/interpolation/orphans-interpolation.html
@@ -1,17 +1,69 @@
<!DOCTYPE html>
<body>
<style>
+.parent {
+ orphans: 30;
+}
.target {
- width: 100px;
- height: 100px;
- background-color: black;
- display: inline-block;
+ orphans: 10;
}
</style>
<script src="resources/interpolation-test.js"></script>
<script>
assertInterpolation({
property: 'orphans',
+ from: '',
+ to: '20',
+}, [
+ {at: -0.5, is: '5'},
+ {at: 0, is: '10'},
+ {at: 0.3, is: '13'},
+ {at: 0.7, is: '17'},
+ {at: 1, is: '20'},
+ {at: 1.5, is: '25'},
+]);
+
+assertInterpolation({
+ property: 'orphans',
+ from: 'initial',
+ to: '20',
+}, [
+ {at: -0.5, is: '1'},
+ {at: 0, is: '2'},
+ {at: 0.3, is: '7'},
+ {at: 0.7, is: '15'},
+ {at: 1, is: '20'},
+ {at: 1.5, is: '29'},
+]);
+
+assertInterpolation({
+ property: 'orphans',
+ from: 'inherit',
+ to: '20',
+}, [
+ {at: -0.5, is: '35'},
+ {at: 0, is: '30'},
+ {at: 0.3, is: '27'},
+ {at: 0.7, is: '23'},
+ {at: 1, is: '20'},
+ {at: 1.5, is: '15'},
+]);
+
+assertInterpolation({
+ property: 'orphans',
+ from: 'unset',
+ to: '20',
+}, [
+ {at: -0.5, is: '35'},
+ {at: 0, is: '30'},
+ {at: 0.3, is: '27'},
+ {at: 0.7, is: '23'},
+ {at: 1, is: '20'},
+ {at: 1.5, is: '15'},
+]);
+
+assertInterpolation({
+ property: 'orphans',
from: '10',
to: '1'
}, [

Powered by Google App Engine
This is Rietveld 408576698