layout/reftests/font-face/sheet-set-switch-1.html

Thu, 15 Jan 2015 15:59:08 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:59:08 +0100
branch
TOR_BUG_9701
changeset 10
ac0c01689b40
permissions
-rw-r--r--

Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
     2 	"http://www.w3.org/TR/html4/strict.dtd">
     3 <html lang="en-US" class="reftest-wait">
     4 <head>
     5 	<title></title>
     6 	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
     7 	<style type="text/css" title="Set A">
     9 	@font-face {
    10 		font-family: "MarkA";
    11 		src: url(../fonts/markA.ttf);
    12 	}
    14 	</style>
    15 	<style type="text/css" title="Set B">
    17 	@font-face {
    18 		font-family: "Mark2B";
    19 		src: url(../fonts/mark2B.ttf);
    20 	}
    22 	</style>
    23 	<style type="text/css">
    25 	@font-face {
    26 		font-family: "MarkC";
    27 		src: url(../fonts/markC.ttf);
    28 	}
    30 	body { font-family: "MarkA", "Mark2B", "MarkC"; }
    32 	</style>
    33 	<script type="application/ecmascript">
    35 	function run() {
    36 		// The resize-detector iframe will remove the class attribute.
    37 		document.getElementsByTagName("iframe")[0].contentWindow.arm_for_wider();
    39 		document.selectedStyleSheetSet = "Set B";
    40 	}
    42 	</script>
    43 </head>
    44 <body onload="setTimeout(run, 20)">
    46 <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>
    48 </body>
    49 </html>

mercurial