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

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

Issue 292173009: Web Animations - responsive interpolation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@0519_MySeparation
Patch Set: SVG Paint Created 6 years, 7 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
« no previous file with comments | « no previous file | LayoutTests/web-animations-api/animations-responsive-backgroundSize.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/web-animations-api/animations-responsive-backgroundPosition.html
diff --git a/LayoutTests/web-animations-api/animations-responsive-verticalAlign.html b/LayoutTests/web-animations-api/animations-responsive-backgroundPosition.html
similarity index 62%
copy from LayoutTests/web-animations-api/animations-responsive-verticalAlign.html
copy to LayoutTests/web-animations-api/animations-responsive-backgroundPosition.html
index 8521d93295657afa4163df340c474f957735c8b0..d9b46bdd5abdb19d80fc374fdc1a17bd7bfcdc3f 100644
--- a/LayoutTests/web-animations-api/animations-responsive-verticalAlign.html
+++ b/LayoutTests/web-animations-api/animations-responsive-backgroundPosition.html
@@ -12,11 +12,14 @@ var container = document.getElementById('container');
test(function() {
element.style.fontSize = '10px';
- var player = element.animate([{verticalAlign: '3em'}, {verticalAlign: '5em'}], 10);
+ var player = element.animate([
+ {backgroundPosition: '10% 1em'},
+ {backgroundPosition: '20% 5em'}],
+ 10);
player.pause();
player.currentTime = 5;
element.style.fontSize = '20px';
- assert_equals(getComputedStyle(element).verticalAlign, '80px');
-}, 'verticalAlign responsive to style changes');
+ assert_equals(getComputedStyle(element).backgroundPosition, '15% 60px');
+}, 'Background position responsive to style changes');
</script>
« no previous file with comments | « no previous file | LayoutTests/web-animations-api/animations-responsive-backgroundSize.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698