Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / http / tests / webfont / fontface-style-change.html
1 <!doctype html>
2 <html>
3 <body>
4 <style id="target">
5 @font-face {
6     font-family: TestFont;
7     src: local(nonexistent), url(slow-ahem-loading.cgi);
8 }
9 </style>
10 <span style="font-family: TestFont;">A</span>
11 <script>
12 if (window.testRunner)
13     testRunner.waitUntilDone();
14
15 var style = document.getElementById('target');
16 style.parentNode.removeChild(style);
17 document.body.offsetLeft;
18 document.body.appendChild(style);
19
20 if (window.testRunner)
21     document.fonts.ready().then(function() { testRunner.notifyDone(); });
22 </script>
23 </body>
24 </html>