1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/font-face/insert-rule-1b.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,30 @@ 1.4 +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" 1.5 + "http://www.w3.org/TR/html4/strict.dtd"> 1.6 +<html lang="en-US" class="reftest-wait"> 1.7 +<head> 1.8 + <title></title> 1.9 + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 1.10 + <style type="text/css"> 1.11 + 1.12 + body { font-family: "MarkA", "MarkB"; } 1.13 + @font-face { font-family: 'MarkA'; src: url(../fonts/markA.ttf); } 1.14 + 1.15 + </style> 1.16 + <script type="application/ecmascript"> 1.17 + 1.18 + function run() { 1.19 + // The resize-detector iframe will remove the class attribute. 1.20 + document.getElementsByTagName("iframe")[0].contentWindow.arm_for_wider(); 1.21 + 1.22 + var sheet = document.getElementsByTagName("style")[0].sheet; 1.23 + sheet.insertRule("@font-face { font-family: 'MarkB'; src: url(../fonts/markB.ttf); }", 0); 1.24 + } 1.25 + 1.26 + </script> 1.27 +</head> 1.28 +<body onload="setTimeout(run, 20)"> 1.29 + 1.30 +<p style="position:relative; width: -moz-max-content">ABC<iframe style="visibility:hidden;position:absolute;height:100%;width:100%" src="resize-detector-iframe.html"></iframe></p> 1.31 + 1.32 +</body> 1.33 +</html>