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

Unified Diff: third_party/WebKit/LayoutTests/animations/change-keyframes.html

Issue 1890743002: Reland of ix getComputedStyle positioned element values (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Created 4 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/change-keyframes.html
diff --git a/third_party/WebKit/LayoutTests/animations/change-keyframes.html b/third_party/WebKit/LayoutTests/animations/change-keyframes.html
index 97fda5a4cefb17df3182961a8f37ecc9c833d9d0..fc0bef452f7c6a4e5a6d67968807928496bd9227 100644
--- a/third_party/WebKit/LayoutTests/animations/change-keyframes.html
+++ b/third_party/WebKit/LayoutTests/animations/change-keyframes.html
@@ -43,7 +43,7 @@
// A forced style-recalc aborts the previous animation.
box.style.animationName = "none";
- assert_equals(getComputedStyle(box).left, 'auto', 'left');
+ assert_equals(getComputedStyle(box).left, '0px', 'left');
// Change keyframes.
var keyframes = findKeyframesRule("anim");
@@ -53,8 +53,8 @@
keyframes.appendRule("100% { top: 150px; }");
box.style.webkitAnimationName = "anim";
- // The left property should reset to auto and top should be animating.
- assert_equals(getComputedStyle(box).left, 'auto', 'left');
+ // The left property should reset and top should be animating.
+ assert_equals(getComputedStyle(box).left, '0px', 'left');
assert_equals(getComputedStyle(box).top, '100px', 'top');
}, "Check that changes to keyframe rules take effect");
</script>

Powered by Google App Engine
This is Rietveld 408576698