Tue, 06 Jan 2015 21:39:09 +0100
Conditionally force memory storage according to privacy.thirdparty.isolate;
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>
3 <head>
4 <style>
5 #rel {
6 position: relative;
7 margin: 0;
8 padding: 0;
9 bottom: 25px;
10 right: 25px;
11 width: 50px;
12 height: 50px;
13 }
14 .abs {
15 position: absolute;
16 margin: 0;
17 padding: 0;
18 bottom: 25px;
19 right: 25px;
20 width: 50px;
21 height: 50px;
22 background-color: green;
23 }
24 #adjusted-abs {
25 bottom: 50px;
26 right: 50px;
27 }
28 #bad {
29 background-color: blue;
30 }
31 #bottomright {
32 position: absolute;
33 margin: 0;
34 padding: 0;
35 bottom: 0;
36 right: 0;
37 width: 50px;
38 height: 50px;
39 overflow: visible;
40 }
41 </style>
42 </head>
43 <body>
44 The green square should not completely cover the blue square.
45 <div class="abs" id="bad"></div>
46 <div id="bottomright">
47 <div id="rel">
48 <div class="abs" id="adjusted-abs"></div>
49 </div>
50 </div>
51 </body>
52 </html>