layout/reftests/font-face/download-3-notref.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/font-face/download-3-notref.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,27 @@
     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">
     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 +	body { font-family: "MarkA"; }
    1.12 +	</style>
    1.13 +</head>
    1.14 +<body>
    1.15 +
    1.16 +<div id="t" style="visibility:hidden; width: -moz-fit-content">ABC</div>
    1.17 +<script>
    1.18 +  document.body.offsetWidth;
    1.19 +  var n = document.getElementById("t");
    1.20 +  var w = document.defaultView.getComputedStyle(n, "").width;
    1.21 +  var h = document.defaultView.getComputedStyle(n, "").height;
    1.22 +  var d = document.createElement("div");
    1.23 +  d.style.width = w;
    1.24 +  d.style.height = h;
    1.25 +  d.style.backgroundColor = "green";
    1.26 +  n.parentNode.removeChild(n);
    1.27 +  document.body.appendChild(d);
    1.28 +</script>
    1.29 +</body>
    1.30 +</html>

mercurial