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 | <!DOCTYPE HTML> |
michael@0 | 2 | <html> |
michael@0 | 3 | <head> |
michael@0 | 4 | <title>CSS 2.1 Test Suite: z-index</title> |
michael@0 | 5 | <link rel="author" title="Robert O'Callahan" href="mailto:robert@ocallahan.org" /> |
michael@0 | 6 | <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> |
michael@0 | 7 | <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#z-index" /> |
michael@0 | 8 | <meta name="flags" content="" /> |
michael@0 | 9 | <style> |
michael@0 | 10 | .container { |
michael@0 | 11 | position:absolute; |
michael@0 | 12 | width:400px; |
michael@0 | 13 | height:100px; |
michael@0 | 14 | font-size:0; |
michael@0 | 15 | background-color:yellow; |
michael@0 | 16 | line-height:0; |
michael@0 | 17 | z-index:0; |
michael@0 | 18 | } |
michael@0 | 19 | .container > div { |
michael@0 | 20 | height:100px; |
michael@0 | 21 | margin-bottom:-100px; |
michael@0 | 22 | } |
michael@0 | 23 | .negative { |
michael@0 | 24 | width:380px; |
michael@0 | 25 | background-color:blue; |
michael@0 | 26 | position:relative; |
michael@0 | 27 | z-index:-1; |
michael@0 | 28 | } |
michael@0 | 29 | .block { |
michael@0 | 30 | width:360px; |
michael@0 | 31 | background-color:purple; |
michael@0 | 32 | } |
michael@0 | 33 | .float { |
michael@0 | 34 | float:left; |
michael@0 | 35 | width:340px; |
michael@0 | 36 | margin-right:-340px; |
michael@0 | 37 | background-color:green; |
michael@0 | 38 | } |
michael@0 | 39 | .inline { |
michael@0 | 40 | width:320px; |
michael@0 | 41 | display:inline-block; |
michael@0 | 42 | background-color:pink; |
michael@0 | 43 | } |
michael@0 | 44 | #outline { |
michael@0 | 45 | width:300px; |
michael@0 | 46 | outline:20px solid gray; |
michael@0 | 47 | outline-offset:-20px; |
michael@0 | 48 | } |
michael@0 | 49 | .positioned { |
michael@0 | 50 | width:280px; |
michael@0 | 51 | background-color:magenta; |
michael@0 | 52 | position:relative; |
michael@0 | 53 | } |
michael@0 | 54 | .positive { |
michael@0 | 55 | width:260px; |
michael@0 | 56 | background-color:orange; |
michael@0 | 57 | position:relative; |
michael@0 | 58 | z-index:1; |
michael@0 | 59 | } |
michael@0 | 60 | </style> |
michael@0 | 61 | </head> |
michael@0 | 62 | <body> |
michael@0 | 63 | <div class="container"> |
michael@0 | 64 | <div class="positive"></div> |
michael@0 | 65 | <div class="positioned"></div> |
michael@0 | 66 | <div id="outline"></div> |
michael@0 | 67 | <div class="inline"></div> |
michael@0 | 68 | <div class="float"></div> |
michael@0 | 69 | |
michael@0 | 70 | <div class="block"></div> |
michael@0 | 71 | <div class="negative"></div> |
michael@0 | 72 | </div> |
michael@0 | 73 | </body> |
michael@0 | 74 | </html> |