layout/reftests/image-element/bug-463204.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 <!--
     2      Any copyright is dedicated to the Public Domain.
     3      http://creativecommons.org/licenses/publicdomain/
     5      bug 463204
     6 -->
     7 <html>
     8   <head>
     9     <style>
    10       span {
    11         background-image: -moz-element(#g);
    12         display: inline-block;
    13         margin-left: 0.6px;
    14       }
    15       #repeat {
    16         width: 38px;
    17         height: 38px;
    18         background-repeat: repeat;
    19       }
    20       #norepeat {
    21         width: 19px;
    22         height: 19px;
    23         background-repeat: no-repeat;
    24         background-position: center center;
    25       }
    26     </style>
    27   </head>
    28   <body>
    29     <span id="repeat"></span><br/>
    30     <span id="norepeat"></span>
    31     <div style="overflow:hidden; height:0px">
    32       <div id="g" style="width:17px; height:17px; border:1px solid red;
    33                          background: orange;"></div>
    34     </div>
    35   </body>
    36 </html>

mercurial