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 | <!-- |
michael@0 | 3 | Any copyright is dedicated to the Public Domain. |
michael@0 | 4 | http://creativecommons.org/licenses/publicdomain/ |
michael@0 | 5 | --> |
michael@0 | 6 | <!DOCTYPE HTML> |
michael@0 | 7 | <html><head> |
michael@0 | 8 | <meta http-equiv="content-type" content="text/html; charset=UTF-8"> |
michael@0 | 9 | <title>text-overflow: text-overflow block padding </title> |
michael@0 | 10 | <style type="text/css"> |
michael@0 | 11 | @font-face { |
michael@0 | 12 | font-family: DejaVuSansMono; |
michael@0 | 13 | src: url(../fonts/DejaVuSansMono.woff); |
michael@0 | 14 | } |
michael@0 | 15 | html,body { |
michael@0 | 16 | color:black; background-color:white; font-size:16px; padding:0; margin:0; font-family:DejaVuSansMono; |
michael@0 | 17 | } |
michael@0 | 18 | body { width:24ch; overflow:hidden; } |
michael@0 | 19 | |
michael@0 | 20 | .test { |
michael@0 | 21 | overflow: hidden; |
michael@0 | 22 | white-space: nowrap; |
michael@0 | 23 | padding-left: 1ch; |
michael@0 | 24 | padding-right: 3ch; |
michael@0 | 25 | height: 3em; |
michael@0 | 26 | margin-bottom:1em; |
michael@0 | 27 | } |
michael@0 | 28 | .s { |
michael@0 | 29 | overflow: auto; position:relative; |
michael@0 | 30 | text-decoration: line-through; |
michael@0 | 31 | } |
michael@0 | 32 | .rel { position:relative; } |
michael@0 | 33 | span { |
michael@0 | 34 | text-decoration: underline overline; |
michael@0 | 35 | background:yellow; |
michael@0 | 36 | } |
michael@0 | 37 | .rtl { |
michael@0 | 38 | direction:rtl; |
michael@0 | 39 | } |
michael@0 | 40 | .ltr { |
michael@0 | 41 | direction:ltr; |
michael@0 | 42 | } |
michael@0 | 43 | .rlo span { |
michael@0 | 44 | unicode-bidi: bidi-override; direction: rtl; |
michael@0 | 45 | } |
michael@0 | 46 | .lro span { |
michael@0 | 47 | unicode-bidi: bidi-override; direction: ltr; |
michael@0 | 48 | } |
michael@0 | 49 | .overlay { |
michael@0 | 50 | position:absolute; |
michael@0 | 51 | border-color:transparent; |
michael@0 | 52 | text-decoration: line-through; |
michael@0 | 53 | z-index:1; |
michael@0 | 54 | } |
michael@0 | 55 | y { background:yellow;} |
michael@0 | 56 | m { background:yellow; position:absolute; right:0; padding-right:3ch; z-index:2;} |
michael@0 | 57 | mr { background:yellow; position:absolute; left:0;padding-left:1ch; z-index:2;} |
michael@0 | 58 | </style> |
michael@0 | 59 | </head><body> |
michael@0 | 60 | |
michael@0 | 61 | <!-- LTR / LTR --> |
michael@0 | 62 | <div class="test ltr overlay"><r> </r></div> |
michael@0 | 63 | <div class="test ltr"><span>| | | | | | | | | |</span><y>… </y></div> |
michael@0 | 64 | |
michael@0 | 65 | <div class="test ltr s"><span>| | | | | | | | | | </span><m>…</m></div> |
michael@0 | 66 | |
michael@0 | 67 | <!-- RTL / LTR --> |
michael@0 | 68 | <div class="test rtl rel"><span><div class="overlay"><r> </r></div>| | | | | | | | | |</span><y style="padding-left:3ch">…</y></div> |
michael@0 | 69 | |
michael@0 | 70 | <div class="test rtl s"><mr>…</mr><span>| | | | | | | | | | | | | </span></div> |
michael@0 | 71 | |
michael@0 | 72 | <!-- LTR / RTL --> |
michael@0 | 73 | <div class="test ltr rlo overlay"><r> </r></div> |
michael@0 | 74 | <div class="test ltr rlo" ><span> | | | | | | | | | </span><y style="padding-right:3ch">…</y></div> |
michael@0 | 75 | |
michael@0 | 76 | <div class="test ltr rlo s"><span>| | | | | | | | | | | | | </span><m>…</m></div> |
michael@0 | 77 | |
michael@0 | 78 | <!-- RTL / RTL --> |
michael@0 | 79 | <div class="test rtl rlo rel"><span><div class="overlay"><r> </r></div>| | | | | | | | | |</span><y>… </y></div> |
michael@0 | 80 | |
michael@0 | 81 | <div class="test rtl rlo s"><mr>…</mr><span>| | | | | | | | | | | | | </span></div> |
michael@0 | 82 | |
michael@0 | 83 | </body></html> |