Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / web-animations-api / animations-responsive-borderImageWidth.html
blobd3f2251cc270a8617f8fd06121755670a03ae158
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 container.style.fontSize = '50px';
15 var player = element.animate([{borderImageWidth: '300px 30px'}, {borderImageWidth: '10em 1em'}], 10);
16 player.pause();
17 player.currentTime = 5;
18 container.style.fontSize = '10px';
19 assert_equals(getComputedStyle(element).borderImageWidth, '200px 20px');
20 }, 'Border image width responsive to font size changes');
22 </script>