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 | <title>Testcase, bug 643781</title> |
michael@0 | 2 | <style> |
michael@0 | 3 | html { background: white; } |
michael@0 | 4 | @font-face { |
michael@0 | 5 | font-family: "MarkA-lineheight1500"; |
michael@0 | 6 | src: url(../fonts/markA-lineheight1500.ttf); |
michael@0 | 7 | } |
michael@0 | 8 | body { |
michael@0 | 9 | padding: 1px; |
michael@0 | 10 | background: blue; |
michael@0 | 11 | width: 100px; |
michael@0 | 12 | height: 33px; |
michael@0 | 13 | font-size: 0px; /* remove the effect of the strut ascent and descent */ |
michael@0 | 14 | } |
michael@0 | 15 | div { |
michael@0 | 16 | background: aqua; |
michael@0 | 17 | } |
michael@0 | 18 | /* |
michael@0 | 19 | MarkA-lineheight1500 at 22 pixel em-size has a line height that is an -- |
michael@0 | 20 | integer number of pixels but the components (ascent/descent/leading) are not |
michael@0 | 21 | integer. This test checks that the line-height remains accurate. |
michael@0 | 22 | */ |
michael@0 | 23 | span { |
michael@0 | 24 | color: transparent; |
michael@0 | 25 | font-family: MarkA-lineheight1500; |
michael@0 | 26 | font-size: 22px; |
michael@0 | 27 | } |
michael@0 | 28 | </style> |
michael@0 | 29 | <body> |
michael@0 | 30 | <div><span>A</span></div> |
michael@0 | 31 | </body> |