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

Unified Diff: tools/perf/page_sets/tough_animation_cases/css_animations_staggered_chaining_by_inserting_style_element.html

Issue 2530253002: CSS Animations: Reduce usage of webkit prefix in perf tests (Closed)
Patch Set: keyframes 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: tools/perf/page_sets/tough_animation_cases/css_animations_staggered_chaining_by_inserting_style_element.html
diff --git a/tools/perf/page_sets/tough_animation_cases/css_animations_staggered_chaining_by_inserting_style_element.html b/tools/perf/page_sets/tough_animation_cases/css_animations_staggered_chaining_by_inserting_style_element.html
index 88e86229067c7e78bb500d77cfb812490d8ec02f..cb636b50b645d85415f560f4c9ed6fb8b042e543 100644
--- a/tools/perf/page_sets/tough_animation_cases/css_animations_staggered_chaining_by_inserting_style_element.html
+++ b/tools/perf/page_sets/tough_animation_cases/css_animations_staggered_chaining_by_inserting_style_element.html
@@ -13,7 +13,7 @@ function startAnimation() {
var target = document.createElement('target');
container.appendChild(target);
updateStyle(target);
- target.addEventListener('webkitAnimationEnd', function(e) {
+ target.addEventListener('animationend', function(e) {
updateStyle(target);
});
}
@@ -32,9 +32,9 @@ function updateStyle(element) {
var style = document.createElement('style');
style.textContent = '\
#' + id + ' {\
- -webkit-animation: ' + anim + ' 1s;\
+ animation: ' + anim + ' 1s;\
}\n\
- @-webkit-keyframes ' + anim + ' {\
+ @keyframes ' + anim + ' {\
0% { opacity: 0; }\
100% { opacity: 1; }\
}';

Powered by Google App Engine
This is Rietveld 408576698