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.

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

mercurial