Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / font-face-cache-bug.html
blob12836da62b8b88803e13761df7f36a3597f2ede5
1 <html>
2 <script src="../../resources/js-test.js"></script>
3 <script>
4 description('Test for <a href="http://webkit.org/b/73520">WebKit bug 73520</a>');
5 window.jsTestIsAsync = true;
6 function runTest()
8 testDiv = document.getElementById('test');
9 shouldBeEqualToString('window.getComputedStyle(testDiv, 0).width', '48px');
10 finishJSTest();
12 </script>
13 <head>
14 <style type="text/css">
15 body {
16 font-family: serif;
18 @font-face{
19 font-family: 'ahem';
20 src: url('../../resources/Ahem.ttf');
22 #test {
23 position: absolute
25 #test span {
26 font-family: ahem;
28 </style>
29 </head>
30 <body onload="setTimeout('runTest()', 100)">
31 <div id=test>
32 <a href="#">
33 <span>aaa</span>
34 </a>
35 </div>
36 </body>
37 </html>