1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/font-face/enable-sheet-3.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,47 @@ 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 + @font-face { 1.13 + font-family: "MarkA"; 1.14 + src: url(../fonts/markA.ttf); 1.15 + } 1.16 + 1.17 + </style> 1.18 + <style type="text/css"> 1.19 + 1.20 + @font-face { 1.21 + font-family: "MarkB"; 1.22 + src: url(../fonts/markB.ttf); 1.23 + } 1.24 + 1.25 + </style> 1.26 + <style type="text/css"> 1.27 + 1.28 + body { font-family: "MarkA", "MarkB"; } 1.29 + 1.30 + </style> 1.31 + <script type="application/ecmascript"> 1.32 + 1.33 + document.getElementsByTagName("style")[1].disabled = true; 1.34 + 1.35 + function run() { 1.36 + // The resize-detector iframe will remove the class attribute. 1.37 + // Allow an intermediate state where we lose the special "A" glyph. 1.38 + document.getElementsByTagName("iframe")[0].contentWindow.arm_for_wider(); 1.39 + 1.40 + document.getElementsByTagName("style")[1].disabled = false; 1.41 + } 1.42 + 1.43 + </script> 1.44 +</head> 1.45 +<body onload="setTimeout(run, 20)"> 1.46 + 1.47 +<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.48 + 1.49 +</body> 1.50 +</html>