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

Side by Side Diff: LayoutTests/web-animations-api/animations-responsive-borderWidth.html

Issue 273683005: Web Animations API: Deferred computation of interpolated values (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add missing test file 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script>
4
5 <div id='container'>
6 <div id='element'></div>
7 </div>
8
9 <script>
10 var element = document.getElementById('element');
11 var container = document.getElementById('container');
12
13 test(function() {
14 element.style.fontSize = '10px';
15 element.style.border = 'none';
16 var player = element.animate([{borderBottomWidth: '300px', offset: 0}, {bord erBottomWidth: '10em', offset: 1}], 10);
17 player.pause();
18 player.currentTime = 5;
19 element.style.border = 'solid';
20 assert_equals(getComputedStyle(element).borderBottomWidth, '200px');
21 }, 'Border width responsive to border style changes');
22
23 test(function() {
24 element.style.fontSize = '50px';
25 element.style.border = 'solid';
26 var player = element.animate([{borderBottomWidth: '300px', offset: 0}, {bord erBottomWidth: '10em', offset: 1}], 10);
27 player.pause();
28 player.currentTime = 5;
29 element.style.fontSize = '10px';
30 assert_equals(getComputedStyle(element).borderBottomWidth, '200px');
31 }, 'Border width responsive to font size changes');
32
33 // FIXME: also test column-rule-width and outline-width
34
35 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698