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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/web-animations-api/animations-responsive-backgroundSize.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../resources/testharness.js"></script> 2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script> 3 <script src="../resources/testharnessreport.js"></script>
4 4
5 <div id='container'> 5 <div id='container'>
6 <div id='element'></div> 6 <div id='element'></div>
7 </div> 7 </div>
8 8
9 <script> 9 <script>
10 var element = document.getElementById('element'); 10 var element = document.getElementById('element');
11 var container = document.getElementById('container'); 11 var container = document.getElementById('container');
12 12
13 test(function() { 13 test(function() {
14 element.style.fontSize = '10px'; 14 element.style.fontSize = '10px';
15 var player = element.animate([{verticalAlign: '3em'}, {verticalAlign: '5em'} ], 10); 15 var player = element.animate([
16 {backgroundPosition: '10% 1em'},
17 {backgroundPosition: '20% 5em'}],
18 10);
16 player.pause(); 19 player.pause();
17 player.currentTime = 5; 20 player.currentTime = 5;
18 element.style.fontSize = '20px'; 21 element.style.fontSize = '20px';
19 assert_equals(getComputedStyle(element).verticalAlign, '80px'); 22 assert_equals(getComputedStyle(element).backgroundPosition, '15% 60px');
20 }, 'verticalAlign responsive to style changes'); 23 }, 'Background position responsive to style changes');
21 24
22 </script> 25 </script>
OLDNEW
« 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