Thu, 15 Jan 2015 15:59:08 +0100
Implement a real Private Browsing Mode condition by changing the API/ABI;
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 xmlns="http://www.w3.org/1999/xhtml"> |
michael@0 | 3 | <style type="text/css"> |
michael@0 | 4 | |
michael@0 | 5 | .parentWithPerspective { |
michael@0 | 6 | -moz-perspective: 100px; |
michael@0 | 7 | -moz-perspective-origin: 150px 150px; |
michael@0 | 8 | -webkit-perspective: 100px; |
michael@0 | 9 | -webkit-perspective-origin: 150px 150px; |
michael@0 | 10 | /* Changing width/height to 500px should not change the rendering. */ |
michael@0 | 11 | height:500px; |
michael@0 | 12 | } |
michael@0 | 13 | |
michael@0 | 14 | .parentWithPerspective > div { |
michael@0 | 15 | position:absolute; |
michael@0 | 16 | top:100px; |
michael@0 | 17 | left:100px; |
michael@0 | 18 | width:100px; |
michael@0 | 19 | height:100px; |
michael@0 | 20 | } |
michael@0 | 21 | |
michael@0 | 22 | .notTransformed { |
michael@0 | 23 | outline: 1px solid black; |
michael@0 | 24 | } |
michael@0 | 25 | |
michael@0 | 26 | .transformed { |
michael@0 | 27 | background:blue; |
michael@0 | 28 | -moz-transform-origin: 0% 0%; |
michael@0 | 29 | -moz-transform: rotateY(45deg); |
michael@0 | 30 | -webkit-transform-origin: 0% 0%; |
michael@0 | 31 | -webkit-transform: rotateY(45deg); |
michael@0 | 32 | } |
michael@0 | 33 | |
michael@0 | 34 | </style> |
michael@0 | 35 | <body> |
michael@0 | 36 | <div class="parentWithPerspective"> |
michael@0 | 37 | <div class="notTransformed"></div> |
michael@0 | 38 | <div class="transformed"></div> |
michael@0 | 39 | </div> |
michael@0 | 40 | </body> |
michael@0 | 41 | </html> |