layout/reftests/box-properties/box-sizing-minmax-height.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>
     2 <html><head>
     3     <title>min-/max-height testcase for bug 308801</title>
     4     <style type="text/css">
     6         html,body {
     7             color:black; background-color:white; font-size:16px; padding:0; margin:0; 
     8         }
    10         div {
    11             margin:0;
    12             padding:0;
    13         }
    15 	.min { min-height:37px; }
    16 	.max { max-height:37px; }
    17 	.hidden { overflow:hidden;  }
    19         .box {
    20             box-sizing: border-box;
    21         }
    23         .test1 {
    24             border:1px solid black;
    25         }
    27         .test2 {
    28             padding:3px;
    29 	    background:black;
    30         }
    32         .test3 {
    33             border:8px solid black;
    34             padding:5px;
    35         }
    37         p { height:43px; margin:0; padding:0; }
    39     </style>
    40 </head>
    41 <body>
    43 <div class="box min test1"></div>
    45 <br><div class="box min test2"></div>
    47 <br><div class="box min test3"></div>
    49 <br><div class="box max test1"><p></div>
    51 <br><div class="box max test2"><p></div>
    53 <br><div class="box max test3"><p></div>
    55 <br><!-- overflow:hidden -->
    57 <div class="hidden box min test1"></div>
    59 <br><div class="hidden box min test2"></div>
    61 <br><div class="hidden box min test3"></div>
    63 <br><div class="hidden box max test1"><p></div>
    65 <br><div class="hidden box max test2"><p></div>
    67 <br><div class="hidden box max test3"><p></div>
    69 </body>
    70 </html>

mercurial