summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css/font-face-remote.html
blob: 5e1b01f7055d1ff7815faf8291ec40ed53f73099 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<head>
    <style>
        @font-face {
            font-family: 'remote';
            src: url(../../resources/Ahem.ttf);
        }
    
        div { width: 100px; height: 100px; background-color: red; font-family: 'remote'; font-size: 20px; color: green; }
    </style>
</head>
<body onload="finished()">
    <div>
        FAIL_<br>
        XXXXX<br>
        XXXXX<br>
        XXXXX<br>
        _FAIL<br>
    </div>
    <script>
        if (window.testRunner)
            testRunner.waitUntilDone();

        // Kick off loading of the font
        document.body.offsetTop;

        function finished()
        {
            if (window.testRunner)
                testRunner.notifyDone();
        }
    </script>
</body>