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

Unified Diff: tools/perf/page_sets/tough_animation_cases/css_animations_many_keyframes.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_many_keyframes.html
diff --git a/tools/perf/page_sets/tough_animation_cases/css_animations_many_keyframes.html b/tools/perf/page_sets/tough_animation_cases/css_animations_many_keyframes.html
index 888ef95393ceaf5949522ddf4147b5f8edd78235..adcd5e8ffebfb38136b1aee82b51c67ab131da5a 100644
--- a/tools/perf/page_sets/tough_animation_cases/css_animations_many_keyframes.html
+++ b/tools/perf/page_sets/tough_animation_cases/css_animations_many_keyframes.html
@@ -20,7 +20,7 @@ var numKeyframes = 500;
var duration = 4000;
function makeKeyframes(numKeyframes, width, height) {
- var keyframes = '@-webkit-keyframes anim {\n'
+ var keyframes = '@keyframes anim {\n'
for (var i = 0; i < numKeyframes + 1; i++) {
var fraction = i / numKeyframes;
var t = fraction * 2 * Math.PI;
@@ -38,7 +38,7 @@ style.textContent = makeKeyframes(numKeyframes, 550, 800);
for (var i = 0; i < N; i++) {
var target = document.createElement('target');
- target.style.webkitAnimation = 'anim ' + duration + 'ms linear infinite ' + (-duration / 10 * i / N) + 'ms';
+ target.style.animation = 'anim ' + duration + 'ms linear infinite ' + (-duration / 10 * i / N) + 'ms';
container.appendChild(target);
}

Powered by Google App Engine
This is Rietveld 408576698