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

Unified Diff: third_party/WebKit/LayoutTests/animations/display-none-terminates-animation.html

Issue 2523543004: CSS Animations: Remove unnecessary webkit prefixes from layout tests (Closed)
Patch Set: Created 4 years, 1 month 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/display-none-terminates-animation.html
diff --git a/third_party/WebKit/LayoutTests/animations/display-none-terminates-animation.html b/third_party/WebKit/LayoutTests/animations/display-none-terminates-animation.html
index 601e6992fc94cf8efea086f9adf06c9885ce384f..666ca19cc816f9e3167580f54c4da0ea5819cae5 100644
--- a/third_party/WebKit/LayoutTests/animations/display-none-terminates-animation.html
+++ b/third_party/WebKit/LayoutTests/animations/display-none-terminates-animation.html
@@ -9,10 +9,10 @@
background-color: blue;
}
.animated {
- -webkit-animation: test 1s linear;
+ animation: test 1s linear;
animation: test 1s linear;
}
- @-webkit-keyframes test {
+ @keyframes test {
from { left: 100px; }
to { left: 200px; }
}
@@ -36,13 +36,13 @@
var target;
function go() {
target = document.getElementById('target');
- target.addEventListener('webkitAnimationStart', onStart);
+ target.addEventListener('animationstart', onStart);
target.classList.add('animated');
}
function onStart(e) {
log('INFO: Start event fired');
- target.removeEventListener('webkitAnimationStart', onStart);
+ target.removeEventListener('animationstart', onStart);
requestAnimationFrame(function() {
setTimeout(setDisplayNone, 100);
});
@@ -58,7 +58,7 @@
}
function setDisplayBlock() {
- target.addEventListener('webkitAnimationStart', onRestart);
+ target.addEventListener('animationstart', onRestart);
target.style.display = 'block';
}

Powered by Google App Engine
This is Rietveld 408576698