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

Side by Side Diff: LayoutTests/web-animations-api/animations-responsive-borderImageWidth.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
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 10 var element = document.getElementById('element');
11 var container = document.getElementById('container'); 11 var container = document.getElementById('container');
12 var element = document.getElementById('element');
13
14 var keyframes = [
15 {fontSize: 'inherit', offset: 0},
16 {fontSize: '20px', offset: 1}
17 ];
18 12
19 test(function() { 13 test(function() {
20 container.style.fontSize = '10px'; 14 container.style.fontSize = '50px';
21 var player = element.animate(keyframes, 10); 15 var player = element.animate([{borderImageWidth: '300px 30px'}, {borderImage Width: '10em 1em'}], 10);
22 player.pause(); 16 player.pause();
23 player.currentTime = 5; 17 player.currentTime = 5;
24 container.style.fontSize = '30px'; 18 container.style.fontSize = '10px';
25 assert_equals(getComputedStyle(element).fontSize, '25px'); 19 assert_equals(getComputedStyle(element).borderImageWidth, '200px 20px');
26 }, 'Font size responsive to inherited changes'); 20 }, 'Border image width responsive to font size changes');
27 21
28 </script> 22 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698