Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / web-animations-api / animations-responsive-borderWidth.html
blob9972665adce6671df4a8cd8b4ccf601563e2edc6
1 <!DOCTYPE html>
2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script>
5 <div id='container'>
6 <div id='element'></div>
7 </div>
9 <script>
10 var element = document.getElementById('element');
11 var container = document.getElementById('container');
13 test(function() {
14 element.style.fontSize = '10px';
15 element.style.border = 'none';
16 var player = element.animate([{borderBottomWidth: '300px'}, {borderBottomWidth: '10em'}], 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');
23 test(function() {
24 element.style.fontSize = '50px';
25 element.style.border = 'solid';
26 var player = element.animate([{borderBottomWidth: '300px'}, {borderBottomWidth: '10em'}], 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');
33 </script>