layout/reftests/table-width/balancing-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.

michael@0 1 <!DOCTYPE HTML>
michael@0 2 <html>
michael@0 3 <head>
michael@0 4 <title>Balancing of tables (shrinking)</title>
michael@0 5 <style type="text/css">
michael@0 6
michael@0 7 table, td {
michael@0 8 border: none;
michael@0 9 margin: 0;
michael@0 10 padding: 0;
michael@0 11 border-spacing: 3px;
michael@0 12 }
michael@0 13
michael@0 14 tr { height: 4em; }
michael@0 15
michael@0 16 td { background: black; background: currentColor; }
michael@0 17
michael@0 18 td, span { line-height: 1; }
michael@0 19
michael@0 20 span {
michael@0 21 display: inline-block;
michael@0 22 width: 50px;
michael@0 23 }
michael@0 24
michael@0 25 body { width: 900px; }
michael@0 26
michael@0 27 </style>
michael@0 28 </head>
michael@0 29 <body>
michael@0 30
michael@0 31 <!--
michael@0 32 cell widths are:
michael@0 33 min pref pct
michael@0 34 50 150
michael@0 35 50 50
michael@0 36 50 100*
michael@0 37 50 50 50%
michael@0 38
michael@0 39 and the table has 15px of horizontal border-spacing
michael@0 40
michael@0 41 sizing to col width total
michael@0 42 min 200
michael@0 43 min/pct 300
michael@0 44 min/spec 400
michael@0 45 pref 600
michael@0 46
michael@0 47 -->
michael@0 48
michael@0 49 <div style="width: 100px"><table><tr>
michael@0 50 <td style="color:aqua"><span></span>&#x200b;<span></span>&#x200b;<span></span></td>
michael@0 51 <td style="color:yellow"><span></span></td>
michael@0 52 <td style="color:fuchsia" width="100"><span></span></td>
michael@0 53 <td style="color:blue" width="50%"><span></span></td>
michael@0 54 </tr></table></div>
michael@0 55
michael@0 56 <div style="width: 265px"><table><tr>
michael@0 57 <td style="color:aqua"><span></span>&#x200b;<span></span>&#x200b;<span></span></td>
michael@0 58 <td style="color:yellow"><span></span></td>
michael@0 59 <td style="color:fuchsia" width="100"><span></span></td>
michael@0 60 <td style="color:blue" width="50%"><span></span></td>
michael@0 61 </tr></table></div>
michael@0 62
michael@0 63 <div style="width: 315px"><table><tr>
michael@0 64 <td style="color:aqua"><span></span>&#x200b;<span></span>&#x200b;<span></span></td>
michael@0 65 <td style="color:yellow"><span></span></td>
michael@0 66 <td style="color:fuchsia" width="100"><span></span></td>
michael@0 67 <td style="color:blue" width="50%"><span></span></td>
michael@0 68 </tr></table></div>
michael@0 69
michael@0 70 <div style="width: 365px"><table><tr>
michael@0 71 <td style="color:aqua"><span></span>&#x200b;<span></span>&#x200b;<span></span></td>
michael@0 72 <td style="color:yellow"><span></span></td>
michael@0 73 <td style="color:fuchsia" width="100"><span></span></td>
michael@0 74 <td style="color:blue" width="50%"><span></span></td>
michael@0 75 </tr></table></div>
michael@0 76
michael@0 77 <div style="width: 415px"><table><tr>
michael@0 78 <td style="color:aqua"><span></span>&#x200b;<span></span>&#x200b;<span></span></td>
michael@0 79 <td style="color:yellow"><span></span></td>
michael@0 80 <td style="color:fuchsia" width="100"><span></span></td>
michael@0 81 <td style="color:blue" width="50%"><span></span></td>
michael@0 82 </tr></table></div>
michael@0 83
michael@0 84 <div style="width: 515px"><table><tr>
michael@0 85 <td style="color:aqua"><span></span>&#x200b;<span></span>&#x200b;<span></span></td>
michael@0 86 <td style="color:yellow"><span></span></td>
michael@0 87 <td style="color:fuchsia" width="100"><span></span></td>
michael@0 88 <td style="color:blue" width="50%"><span></span></td>
michael@0 89 </tr></table></div>
michael@0 90
michael@0 91 <div style="width: 700px"><table><tr>
michael@0 92 <td style="color:aqua"><span></span>&#x200b;<span></span>&#x200b;<span></span></td>
michael@0 93 <td style="color:yellow"><span></span></td>
michael@0 94 <td style="color:fuchsia" width="100"><span></span></td>
michael@0 95 <td style="color:blue" width="50%"><span></span></td>
michael@0 96 </tr></table></div>
michael@0 97
michael@0 98 <table width="815"><tr>
michael@0 99 <td style="color:aqua"><span></span>&#x200b;<span></span>&#x200b;<span></span></td>
michael@0 100 <td style="color:yellow"><span></span></td>
michael@0 101 <td style="color:fuchsia" width="100"><span></span></td>
michael@0 102 <td style="color:blue" width="50%"><span></span></td>
michael@0 103 </tr></table>
michael@0 104
michael@0 105 </body>
michael@0 106 </html>

mercurial