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 | <head> |
michael@0 | 3 | |
michael@0 | 4 | <!-- This font only has glyphs defined for 'A', 'B', 'C' and 'D', and is |
michael@0 | 5 | designed purely for testing ssty and OpenType 'math' script |
michael@0 | 6 | functionality |
michael@0 | 7 | The glyphs for 'A' and 'D' are identical, the difference between them is |
michael@0 | 8 | that 'A' supports the ssty font feature. |
michael@0 | 9 | 'A' with ssty = 1 maps to 'B' |
michael@0 | 10 | 'A' with ssty = 2 maps to 'C' |
michael@0 | 11 | The difference between this font and ssty.woff is that the font feature |
michael@0 | 12 | is contained within the OpenType 'math' script. --> |
michael@0 | 13 | <style type="text/css" media="screen, print"> |
michael@0 | 14 | @font-face { |
michael@0 | 15 | font-family: "mathssty"; |
michael@0 | 16 | src: url("mathssty.woff"); |
michael@0 | 17 | } |
michael@0 | 18 | </style> |
michael@0 | 19 | </head> |
michael@0 | 20 | <body> |
michael@0 | 21 | |
michael@0 | 22 | <!-- Demonstrate that it has no effect outside MathML --> |
michael@0 | 23 | <div style="font-family: 'mathssty';">D</div> |
michael@0 | 24 | <div style="font-family: 'mathssty';">D</div> |
michael@0 | 25 | |
michael@0 | 26 | <!-- Demonstrate that it works within MathML --> |
michael@0 | 27 | <math> |
michael@0 | 28 | <mstyle style="font-family: 'mathssty';"> |
michael@0 | 29 | <mrow> |
michael@0 | 30 | <mo>D</mo> |
michael@0 | 31 | <mo>B</mo> |
michael@0 | 32 | <mo>C</mo> |
michael@0 | 33 | </mrow> |
michael@0 | 34 | </mstyle> |
michael@0 | 35 | </math> |
michael@0 | 36 | <p> |
michael@0 | 37 | <!-- verify it works for the other elements except mtext --> |
michael@0 | 38 | <math> |
michael@0 | 39 | <mstyle style="font-family: 'mathssty';"> |
michael@0 | 40 | <mi mathvariant="normal">C</mi> |
michael@0 | 41 | <mn>C</mn> |
michael@0 | 42 | <mtext>D</mtext> |
michael@0 | 43 | </mstyle> |
michael@0 | 44 | </math> |
michael@0 | 45 | </body> |