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 <!-- Any copyright is dedicated to the Public Domain.
3 http://creativecommons.org/publicdomain/zero/1.0/ -->
4 <!-- Testcase for how we fragment a flex container with several children in a
5 multi-line vertical flexbox.
6 -->
7 <html>
8 <head>
9 <style>
10 .multicol {
11 height: 40px;
12 width: 100px;
13 -moz-column-width: 60px;
14 -moz-column-fill: auto;
15 border: 2px solid purple;
16 margin-bottom: 15px; /* (just for spacing between testcases) */
17 }
18 .flexContainer {
19 display: flex;
20 flex-direction: column;
21 flex-wrap: wrap;
22 align-content: flex-start;
23 background: yellow;
24 border: 1px dashed black;
25 }
26 .item {
27 width: 40px;
28 height: 15px;
29 border: 1px dotted teal;
30 margin: 1px;
31 font: 10px;
32 }
33 </style>
34 </head>
35 <body>
36 <!-- auto-height container: -->
37 <div class="multicol">
38 <div class="flexContainer">
39 <div class="item">1</div>
40 <div class="item">2</div>
41 <div class="item">3</div>
42 </div>
43 </div>
45 <!-- auto-height container, with enough children that our last flex line
46 overflows (in the cross axis) -->
47 <!-- XXXdholbert Ultimately (in bug 939897 probably) we should push the
48 overflowing flex line to a continuation of the flex container -->
49 <div class="multicol">
50 <div class="flexContainer">
51 <div class="item">1</div>
52 <div class="item">2</div>
53 <div class="item">3</div>
54 <div class="item">4</div>
55 <div class="item">5</div>
56 </div>
57 </div>
59 <!-- fixed-height container-->
60 <div class="multicol">
61 <div class="flexContainer" style="height: 70px">
62 <div class="item">1</div>
63 <div class="item">2</div>
64 <div class="item">3</div>
65 </div>
66 </div>
68 <!-- fixed-height container, with enough children that our last flex line
69 overflows (in the cross axis) -->
70 <!-- XXXdholbert Ultimately (in bug 939897 probably) we should push the
71 overflowing flex line to a continuation of the flex container -->
72 <div class="multicol">
73 <div class="flexContainer" style="height: 70px">
74 <div class="item">1</div>
75 <div class="item">2</div>
76 <div class="item">3</div>
77 <div class="item">4</div>
78 <div class="item">5</div>
79 </div>
80 </div>
81 </body>
82 </html>