layout/reftests/font-face/disable-sheet-4.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/font-face/disable-sheet-4.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,44 @@
     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: "One";
    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: "One";
    1.22 +		src: url(../fonts/mark2A.ttf);
    1.23 +	}
    1.24 +
    1.25 +	</style>
    1.26 +	<style type="text/css">
    1.27 +
    1.28 +	body { font-family: "One"; }
    1.29 +
    1.30 +	</style>
    1.31 +	<script type="application/ecmascript">
    1.32 +
    1.33 +	function run() {
    1.34 +		// The restore-size-detector iframe will remove the class attribute.
    1.35 +		document.getElementsByTagName("iframe")[0].contentWindow.arm();
    1.36 +
    1.37 +		document.getElementsByTagName("style")[0].disabled = true;
    1.38 +	}
    1.39 +
    1.40 +	</script>
    1.41 +</head>
    1.42 +<body onload="setTimeout(run, 20)">
    1.43 +
    1.44 +<p style="position:relative; width: -moz-max-content">ABC<iframe style="visibility:hidden;position:absolute;height:100%;width:100%" src="restore-size-detector-iframe.html"></iframe></p>
    1.45 +
    1.46 +</body>
    1.47 +</html>

mercurial