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

Unified Diff: LayoutTests/web-animations-api/animations-responsive-translate.html

Issue 1196913005: Implement animations for Independent CSS Transform Properties (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix rotate-interpolation test Created 5 years, 6 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-translate.html
diff --git a/LayoutTests/web-animations-api/animations-responsive-transform.html b/LayoutTests/web-animations-api/animations-responsive-translate.html
similarity index 65%
copy from LayoutTests/web-animations-api/animations-responsive-transform.html
copy to LayoutTests/web-animations-api/animations-responsive-translate.html
index 940b756d14a785265478eceeba5a0530f38aa106..1e4a7eb45cda4a3fe1333eb641eb3d6043c804f1 100644
--- a/LayoutTests/web-animations-api/animations-responsive-transform.html
+++ b/LayoutTests/web-animations-api/animations-responsive-translate.html
@@ -12,11 +12,11 @@ var container = document.getElementById('container');
test(function() {
container.style.fontSize = '10px';
- var player = element.animate([{transform: 'translateX(10em)'}, {transform: 'translateX(20em)'}], 10);
+ var player = element.animate([{translate: '1em 2em'}, {translate: '10em 20em'}], 10);
player.pause();
player.currentTime = 2;
container.style.fontSize = '20px';
- assert_equals(getComputedStyle(element).transform, 'matrix(1, 0, 0, 1, 240, 0)');
-}, 'Transform responsive to font size changes');
+ assert_equals(getComputedStyle(element).translate, '56px 112px');
+}, 'Translate responsive to font size changes');
</script>
« no previous file with comments | « LayoutTests/animations/interpolation/translate-interpolation.html ('k') | Source/core/animation/DoubleStyleInterpolation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698