Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / webfont / fontface-style-change.html
blob2c53b99be9471943bcaf0e761c8096aa89aee6a5
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);
9 </style>
10 <span id="testSpan">A</span>
11 <script>
12 if (window.testRunner)
13 testRunner.waitUntilDone();
15 // Set the span's style and register a font ready listener in the same microtask so that font can't
16 // load before we've had a chance to register the listener.
17 document.getElementById('testSpan').style.fontFamily = "TestFont";
19 if (window.testRunner)
20 document.fonts.ready.then(function() { testRunner.notifyDone(); });
22 var style = document.getElementById('target');
23 style.parentNode.removeChild(style);
24 document.body.offsetLeft;
25 document.body.appendChild(style);
26 </script>
27 </body>
28 </html>