layout/xul/reftest/image-size-ref.xul

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.

michael@0 1 <?xml version="1.0"?>
michael@0 2 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
michael@0 3 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
michael@0 4 xmlns:html="http://www.w3.org/1999/xhtml">
michael@0 5
michael@0 6 <html:style>
michael@0 7 div { margin: 0px; line-height: 0px; }
michael@0 8 div div { background: blue; display: inline; float: left; }
michael@0 9 </html:style>
michael@0 10
michael@0 11 <html:div><html:img
michael@0 12 src="image4x3.png" style="width: 40px; height: 30px;"/><html:img
michael@0 13 src="image4x3.png" style="width: 80px; height: 20px;"/><html:img
michael@0 14 src="image4x3.png" style="width: 10px; height: 70px;"/><html:img
michael@0 15 src="image4x3.png" style="width: 80px; height: 60px;"/><html:img
michael@0 16 src="image4x3.png" style="width: 80px; height: 60px;"/><html:img
michael@0 17 src="image4x3.png" style="width: 20px; height: 15px;"/><html:img
michael@0 18 src="image4x3.png" style="width: 20px; height: 15px;"/><html:img
michael@0 19 src="image4x3.png" style="width: 40px; height: 30px; border: 8px solid green;"/><html:img
michael@0 20 src="image4x3.png" style="box-sizing: border-box; width: 80px; height: 64px; border: 8px solid yellow;"/><html:img
michael@0 21 src="image4x3.png" style="box-sizing: border-box; width: 72px; height: 58px; border: 8px solid green;"/><html:img
michael@0 22 src="image4x3.png" style="box-sizing: border-box; width: 24px; height: 22px; border: 8px solid yellow;"/><html:img
michael@0 23 src="image4x3.png" style="box-sizing: border-box; width: 24px; height: 22px; border: 8px solid green;"/><html:img
michael@0 24 src="image4x3.png" style="box-sizing: border-box; width: 74px; height: 53px; border: solid yellow; border-top-width: 1px; border-right-width: 2px; border-bottom-width: 4px; border-left-width: 8px;"/><html:img
michael@0 25 src="image4x3.png" style="box-sizing: border-box; width: 18px; height: 11px; border: solid green; border-top-width: 1px; border-right-width: 2px; border-bottom-width: 4px; border-left-width: 8px;"/>
michael@0 26 </html:div>
michael@0 27
michael@0 28 <html:div><html:img
michael@0 29 src="image4x3.png" style="width: 40px; height: 30px;"/><html:img
michael@0 30 src="image4x3.png" style="width: 80px; height: 20px;"/><html:img
michael@0 31 src="image4x3.png" style="width: 10px; height: 70px;"/><html:img
michael@0 32 src="image4x3.png" style="width: 80px; height: 60px;"/><html:img
michael@0 33 src="image4x3.png" style="height: 80px; height: 60px;"/><html:img
michael@0 34 src="image4x3.png" style="width: 20px; height: 15px;"/><html:img
michael@0 35 src="image4x3.png" style="width: 20px; height: 15px;"/><html:img
michael@0 36 src="image4x3.png" style="width: 60px; height: 25px;"/><html:img
michael@0 37 src="image4x3.png" style="width: 20px; height: 75px;"/><html:img
michael@0 38 src="image4x3.png" style="width: 80px; height: 64px; padding: 8px; box-sizing: border-box;"/><html:img
michael@0 39 src="image4x3.png" style="width: 72px; height: 58px; padding: 8px; box-sizing: border-box;"/><html:img
michael@0 40 src="image4x3.png" style="width: 24px; height: 22px; padding: 8px; box-sizing: border-box;"/><html:img
michael@0 41 src="image4x3.png" style="width: 24px; height: 22px; padding: 8px; box-sizing: border-box;"/><html:img
michael@0 42 src="image4x3.png" style="width: 67px; height: 60px; padding: 4px 2px 8px 1px; box-sizing: border-box;"/><html:img
michael@0 43 src="image4x3.png" style="width: 11px; height: 18px; padding: 4px 2px 8px 1px; box-sizing: border-box;"/>
michael@0 44 </html:div>
michael@0 45
michael@0 46 <html:div><html:img
michael@0 47 src="image4x3.png" style="width: 20px; height: 15px;"/>
michael@0 48 </html:div>
michael@0 49
michael@0 50 <html:div><html:img
michael@0 51 src="image4x3.png" style="width: 20px; height: 15px;"/>
michael@0 52 </html:div>
michael@0 53
michael@0 54 <html:div><html:img
michael@0 55 src="image4x3.png" style="width: 30px; height: 22.5px"/>
michael@0 56 </html:div>
michael@0 57
michael@0 58 <html:div><html:img
michael@0 59 src="image4x3.png" style="width: 20px; height: 15px;"/>
michael@0 60 </html:div>
michael@0 61
michael@0 62 <html:div><html:img
michael@0 63 src="image4x3.png" style="width: 20px; height: 15px;"/>
michael@0 64 </html:div>
michael@0 65
michael@0 66 <html:div><html:img
michael@0 67 src="image4x3.png" style="width 30px; height: 22.5px;"/>
michael@0 68 </html:div>
michael@0 69
michael@0 70 <html:div><html:img
michael@0 71 src="image4x3.png" style="box-sizing: border-box; width: 24px; height: 22px; border: 8px solid green;"/>
michael@0 72 </html:div>
michael@0 73
michael@0 74 <html:div><html:img
michael@0 75 src="image4x3.png" style="box-sizing: border-box; width: 24px; height: 22px; border: 8px solid green;"/>
michael@0 76 </html:div>
michael@0 77
michael@0 78 <html:div><html:img
michael@0 79 src="image4x3.png" style="width: 40px; height: 30px;"/><html:img
michael@0 80 src="image4x3.png" style="width: 40px; height: 30px;"/><html:img
michael@0 81 src="image4x3.png" style="width: 40px; height: 30px;"/><html:img
michael@0 82 src="image4x3.png" style="box-sizing: border-box; width: 60px; height: 49px; border: 8px solid green;"/><html:img
michael@0 83 src="image4x3.png" style="box-sizing: border-box; width: 112px; height: 88px; border: 8px solid yellow;"/><html:img
michael@0 84 src="image4x3.png" style="box-sizing: border-box; width: 96px; height: 76px; border: 8px solid green;"/><html:img
michael@0 85 src="image4x3.png" style="box-sizing: border-box; width: 112px; height: 88px; border: 8px solid yellow;"/><html:img
michael@0 86 src="image4x3.png" style="box-sizing: border-box; width: 106px; height: 77px; border: solid yellow; border-top-width: 1px; border-right-width: 2px; border-bottom-width: 4px; border-left-width: 8px;"/>
michael@0 87 </html:div>
michael@0 88
michael@0 89 <html:div><html:img
michael@0 90 src="image4x3.png" style="width: 60px; height: 45px;"/><html:img
michael@0 91 src="image4x3.png" style="width: 120px; height: 90px;"/><html:img
michael@0 92 src="image4x3.png" style="width 60px; height: 45px;"/><html:img
michael@0 93 src="image4x3.png" style="box-sizing: border-box; width: 60px; height: 49px; padding: 8px;"/><html:img
michael@0 94 src="image4x3.png" style="box-sizing: border-box; width: 112px; height: 88px; padding: 8px;"/><html:img
michael@0 95 src="image4x3.png" style="box-sizing: border-box; width: 96px; height: 76px; padding: 8px;"/><html:img
michael@0 96 src="image4x3.png" style="box-sizing: border-box; width: 112px; height: 88px; padding: 8px;"/>
michael@0 97 </html:div>
michael@0 98
michael@0 99 <html:div><html:div
michael@0 100 style="width: 20px; height: 15px;"/><html:div
michael@0 101 style="width: 80px; height: 60px;"/><html:div
michael@0 102 style="width: 40px; height: 30px;"/><html:div
michael@0 103 style="width: 10px; height: 8px;"/><html:div
michael@0 104 style="width: 10px; height: 8px;"/>
michael@0 105 </html:div>
michael@0 106
michael@0 107 <html:div><html:div style="width: 20px; height: 15px;"/></html:div>
michael@0 108
michael@0 109 <html:div><html:div style="width: 20px; height: 15px;"/></html:div>
michael@0 110
michael@0 111 <html:div><html:div style="box-sizing: border-box; width: 24px; height: 22px; border: 8px solid green;"/></html:div>
michael@0 112
michael@0 113 <html:div><html:div style="box-sizing: border-box; width: 24px; height: 22px; border: 8px solid green;"/></html:div>
michael@0 114
michael@0 115 </window>

mercurial