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 | <style> |
michael@0 | 3 | div { |
michael@0 | 4 | width: 450px; |
michael@0 | 5 | font-size: 34px; |
michael@0 | 6 | } |
michael@0 | 7 | |
michael@0 | 8 | a { |
michael@0 | 9 | font-weight: bold; |
michael@0 | 10 | line-height: 1.1em; |
michael@0 | 11 | color: blue; |
michael@0 | 12 | } |
michael@0 | 13 | |
michael@0 | 14 | a#first { |
michael@0 | 15 | font-size: 34px; |
michael@0 | 16 | font-style: italic; |
michael@0 | 17 | } |
michael@0 | 18 | |
michael@0 | 19 | a#second { |
michael@0 | 20 | font-size: 40px; |
michael@0 | 21 | } |
michael@0 | 22 | |
michael@0 | 23 | </style> |
michael@0 | 24 | <!-- |
michael@0 | 25 | In a 450 px container, the minimum font size at 15em per line is 30px. This |
michael@0 | 26 | means we map 0px-45px into 30px-45px, so 12px gets mapped to 34px and 30px |
michael@0 | 27 | gets mapped to 40px. |
michael@0 | 28 | --> |
michael@0 | 29 | <div> |
michael@0 | 30 | <a id="first" href="">Hello</a><a id="second" href="">Worldz</a> |
michael@0 | 31 | </div> |