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

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

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

mercurial