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

Unified Diff: third_party/WebKit/LayoutTests/animations/timing-functions.html

Issue 2775143002: Implement frames() timing function (Closed)
Patch Set: Fix behaviour outside input range [0,1] Created 3 years, 8 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: third_party/WebKit/LayoutTests/animations/timing-functions.html
diff --git a/third_party/WebKit/LayoutTests/animations/timing-functions.html b/third_party/WebKit/LayoutTests/animations/timing-functions.html
index 5f7721fcf9092a59b1e64d84a3eebf4c59352365..cb03f8134bfe1486b1437884fde99f9bd5020db3 100644
--- a/third_party/WebKit/LayoutTests/animations/timing-functions.html
+++ b/third_party/WebKit/LayoutTests/animations/timing-functions.html
@@ -65,14 +65,17 @@
#box8 {
animation-timing-function: steps(3, end);
}
+ #box9 {
+ animation-timing-function: frames(3);
+ }
/*
* The step-middle functions are invalid except through the Web Animations API
* and should behave like 'ease', unless step-middle has been added to the CSS specification.
*/
- #box9 {
+ #middlebox1 {
animation-timing-function: steps(3, middle);
}
- #box10 {
+ #middlebox2 {
animation-timing-function: step-middle;
}
@@ -106,12 +109,15 @@
[0.25, "box8", "left", 100, 5],
[0.50, "box8", "left", 133, 5],
[0.75, "box8", "left", 166, 5],
- [0.25, "box9", "left", 141, 5],
- [0.50, "box9", "left", 180, 5],
- [0.75, "box9", "left", 196, 5],
- [0.25, "box10", "left", 141, 5],
- [0.50, "box10", "left", 180, 5],
- [0.75, "box10", "left", 196, 5],
+ [0.25, "box9", "left", 100, 5],
+ [0.50, "box9", "left", 150, 5],
+ [0.75, "box9", "left", 200, 5],
+ [0.25, "middlebox1", "left", 141, 5],
+ [0.50, "middlebox1", "left", 180, 5],
+ [0.75, "middlebox1", "left", 196, 5],
+ [0.25, "middlebox2", "left", 141, 5],
+ [0.50, "middlebox2", "left", 180, 5],
+ [0.75, "middlebox2", "left", 196, 5],
];
runAnimationTest(expectedValues);
@@ -137,9 +143,11 @@ It takes 3 snapshots and expects each result to be within a specified range.
</div>
<div class="box" id="box8">
</div>
-<div class="box-step-middle" id="box9">
+<div class="box" id="box9">
+</div>
+<div class="box-step-middle" id="middlebox1">
</div>
-<div class="box-step-middle" id="box10">
+<div class="box-step-middle" id="middlebox2">
</div>
<div id="result">
</div>

Powered by Google App Engine
This is Rietveld 408576698