layout/reftests/backgrounds/background-layers-1b.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 <html>
     2 <head>
     3   <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
     5   <style type="text/css">
     6     *#test1 > * {
     7       background: url(red-128-alpha-32x32.png) center,
     8                   url(green-circle-alpha-32x32.png) center fixed;
     9       background-color: yellow;
    10       width: 32px;
    11       height: 32px;
    12     }
    14     *#test2 > * {
    15       background: url(red-128-alpha-32x32.png) center,
    16                   url(green-circle-alpha-32x32.png) center fixed,
    17                   url(yellow-32x32.png);
    18       background-color: red;
    19       width: 32px;
    20       height: 32px;
    21     }
    23     *#test3 > * {
    24       background: url(red-128-alpha-32x32.png) center,
    25                   url(green-circle-alpha-32x32.png) center fixed,
    26                   url(yellow-32x32.png);
    27       width: 32px;
    28       height: 32px;
    29     }
    31     table, table * {
    32       padding: 0;
    33       margin: 0;
    34     }
    35   </style>
    36 </head>
    38 <body>
    39   <table cellpadding="0" cellspacing="0">
    40     <tr id="test1"><td></td><td></td><td></td></tr>
    41     <tr id="test2"><td></td><td></td><td></td></tr>
    42     <tr id="test3"><td></td><td></td><td></td></tr>
    43   </table>
    44 </body>
    46 </html>

mercurial