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

Unified Diff: LayoutTests/web-animations-api/animations-responsive-to-style-change.html

Issue 1007623003: Fix incorrect percentage top for positioned elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update an expected value of web-animations-api/animations-responsive-to-style-change.html Created 5 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: LayoutTests/web-animations-api/animations-responsive-to-style-change.html
diff --git a/LayoutTests/web-animations-api/animations-responsive-to-style-change.html b/LayoutTests/web-animations-api/animations-responsive-to-style-change.html
index 7c9f1e1cdf50b9f1cc709f52e31311fbf294da80..c337ebe452cac0ce609096eda5e045ec8e29ca15 100644
--- a/LayoutTests/web-animations-api/animations-responsive-to-style-change.html
+++ b/LayoutTests/web-animations-api/animations-responsive-to-style-change.html
@@ -16,11 +16,11 @@ test(function() {
var player = element.animate([{left: 'calc(100px + 80%)'}, {left: '10em'}], 10);
player.pause();
player.currentTime = 5;
- assert_equals(getComputedStyle(element).left, '500px');
+ assert_equals(getComputedStyle(element).left, 'calc(100px + 40%)');
element.style.fontSize = '20px';
- assert_equals(getComputedStyle(element).left, '550px');
+ assert_equals(getComputedStyle(element).left, 'calc(150px + 40%)');
container.style.width = '500px';
- assert_equals(getComputedStyle(element).left, '350px');
+ assert_equals(getComputedStyle(element).left, 'calc(150px + 40%)');
}, 'Lengths responsive to style changes');
test(function() {

Powered by Google App Engine
This is Rietveld 408576698