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.
michael@0 | 1 | body, div, h1 { font-family: 'trebuchet ms', verdana, arial; margin: 0; padding: 0 } |
michael@0 | 2 | body {font-size: 10pt; } |
michael@0 | 3 | h1 { padding: 15px; font-size: large; background-color: #06b; color: white; } |
michael@0 | 4 | h2 { padding: 10px; background-color: #eee; color: black; margin: 0; font-size: small; font-weight: normal } |
michael@0 | 5 | |
michael@0 | 6 | .pass { color: green; } |
michael@0 | 7 | .fail { color: red; } |
michael@0 | 8 | p.result { margin-left: 1em; } |
michael@0 | 9 | |
michael@0 | 10 | #banner { height: 2em; border-bottom: 1px solid white; } |
michael@0 | 11 | h2.pass { background-color: green; } |
michael@0 | 12 | h2.fail { background-color: red; } |
michael@0 | 13 | |
michael@0 | 14 | ol#tests > li > strong { cursor:pointer; } |
michael@0 | 15 | |
michael@0 | 16 | div#fx-tests h4 { |
michael@0 | 17 | background: red; |
michael@0 | 18 | } |
michael@0 | 19 | |
michael@0 | 20 | div#fx-tests h4.pass { |
michael@0 | 21 | background: green; |
michael@0 | 22 | } |
michael@0 | 23 | |
michael@0 | 24 | div#fx-tests div.box { |
michael@0 | 25 | background: red url(data/cow.jpg) no-repeat; |
michael@0 | 26 | overflow: hidden; |
michael@0 | 27 | border: 2px solid #000; |
michael@0 | 28 | } |
michael@0 | 29 | |
michael@0 | 30 | div#fx-tests div.overflow { |
michael@0 | 31 | overflow: visible; |
michael@0 | 32 | } |
michael@0 | 33 | |
michael@0 | 34 | div.inline { |
michael@0 | 35 | display: inline; |
michael@0 | 36 | } |
michael@0 | 37 | |
michael@0 | 38 | div.autoheight { |
michael@0 | 39 | height: auto; |
michael@0 | 40 | } |
michael@0 | 41 | |
michael@0 | 42 | div.autowidth { |
michael@0 | 43 | width: auto; |
michael@0 | 44 | } |
michael@0 | 45 | |
michael@0 | 46 | div.autoopacity { |
michael@0 | 47 | opacity: auto; |
michael@0 | 48 | } |
michael@0 | 49 | |
michael@0 | 50 | div.largewidth { |
michael@0 | 51 | width: 100px; |
michael@0 | 52 | } |
michael@0 | 53 | |
michael@0 | 54 | div.largeheight { |
michael@0 | 55 | height: 100px; |
michael@0 | 56 | } |
michael@0 | 57 | |
michael@0 | 58 | div.largeopacity { |
michael@0 | 59 | filter: progid:DXImageTransform.Microsoft.Alpha(opacity=100); |
michael@0 | 60 | } |
michael@0 | 61 | |
michael@0 | 62 | div.medwidth { |
michael@0 | 63 | width: 50px; |
michael@0 | 64 | } |
michael@0 | 65 | |
michael@0 | 66 | div.medheight { |
michael@0 | 67 | height: 50px; |
michael@0 | 68 | } |
michael@0 | 69 | |
michael@0 | 70 | div.medopacity { |
michael@0 | 71 | opacity: 0.5; |
michael@0 | 72 | filter: progid:DXImageTransform.Microsoft.Alpha(opacity=50); |
michael@0 | 73 | } |
michael@0 | 74 | |
michael@0 | 75 | div.nowidth { |
michael@0 | 76 | width: 0px; |
michael@0 | 77 | } |
michael@0 | 78 | |
michael@0 | 79 | div.noheight { |
michael@0 | 80 | height: 0px; |
michael@0 | 81 | } |
michael@0 | 82 | |
michael@0 | 83 | div.noopacity { |
michael@0 | 84 | opacity: 0; |
michael@0 | 85 | filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0); |
michael@0 | 86 | } |
michael@0 | 87 | |
michael@0 | 88 | div.hidden { |
michael@0 | 89 | display: none; |
michael@0 | 90 | } |
michael@0 | 91 | |
michael@0 | 92 | div#fx-tests div.widewidth { |
michael@0 | 93 | background-repeat: repeat-x; |
michael@0 | 94 | } |
michael@0 | 95 | |
michael@0 | 96 | div#fx-tests div.wideheight { |
michael@0 | 97 | background-repeat: repeat-y; |
michael@0 | 98 | } |
michael@0 | 99 | |
michael@0 | 100 | div#fx-tests div.widewidth.wideheight { |
michael@0 | 101 | background-repeat: repeat; |
michael@0 | 102 | } |
michael@0 | 103 | |
michael@0 | 104 | div#fx-tests div.noback { |
michael@0 | 105 | background-image: none; |
michael@0 | 106 | } |
michael@0 | 107 | |
michael@0 | 108 | div.chain, div.chain div { width: 100px; height: 20px; position: relative; float: left; } |
michael@0 | 109 | div.chain div { position: absolute; top: 0px; left: 0px; } |
michael@0 | 110 | |
michael@0 | 111 | div.chain.test { background: red; } |
michael@0 | 112 | div.chain.test div { background: green; } |
michael@0 | 113 | |
michael@0 | 114 | div.chain.out { background: green; } |
michael@0 | 115 | div.chain.out div { background: red; display: none; } |
michael@0 | 116 | |
michael@0 | 117 | div#show-tests * { display: none; } |