layout/reftests/font-face/ex-unit-1-dynamic.html

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

     1 <!DOCTYPE HTML>
     2 <html class="reftest-wait">
     3 <title>ex unit with Ahem font</title>
     4 <style type="text/css">
     5 html { background: white; }
     6 body { font-family: Ahhhem; font-size: 50px;
     7        height: 2ex; width: 2ex; position: relative;
     8        background: blue;  }
     9 </style>
    10 <script type="application/ecmascript">
    11 function run() {
    12   document.getElementsByTagName("iframe")[0].contentWindow.arm();
    13   document.getElementsByTagName("style")[0].sheet.insertRule(
    14     '@font-face { font-family: "Ahhhem"; src: url(../fonts/Ahem.ttf); }',
    15     0);
    16 }
    17 </script>
    18 <body onload="setTimeout(run, 0)">
    19 <iframe style="visibility:hidden;position:absolute;height:100%;width:100%" src="resize-detector-iframe.html"></iframe>
    20 </body>

mercurial