|
1 <!DOCTYPE HTML> |
|
2 <html> |
|
3 <!-- |
|
4 https://bugzilla.mozilla.org/show_bug.cgi?id=687297 |
|
5 --> |
|
6 <head> |
|
7 <meta charset="utf-8"> |
|
8 <title>Test for Bug 687297</title> |
|
9 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
|
10 <script type="application/javascript" src="/tests/SimpleTest/SpecialPowers.js"></script> |
|
11 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> |
|
12 </head> |
|
13 <body> |
|
14 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=687297">Mozilla Bug 687297</a> |
|
15 <p id="display"></p> |
|
16 <div id="content" style="display: none"> |
|
17 |
|
18 </div> |
|
19 <pre id="test"> |
|
20 <script class="testbody" type="text/javascript"> |
|
21 /** Test for Bug 687297 **/ |
|
22 |
|
23 SimpleTest.waitForExplicitFinish(); |
|
24 |
|
25 var size_a=0, size_b=0, size_c=0; |
|
26 |
|
27 window.report_size_a = function(s) { |
|
28 size_a = s; |
|
29 }; |
|
30 |
|
31 window.report_size_b = function(s) { |
|
32 size_b = s; |
|
33 }; |
|
34 |
|
35 window.report_size_c = function(s) { |
|
36 size_c = s; |
|
37 |
|
38 isnot(size_a, size_b, "Font sizes are changing with global language-specific minimum font size"); |
|
39 is(size_c, size_a, "Font sizes are equal, propagating only the presentation-level base minimum font size"); |
|
40 |
|
41 SimpleTest.finish(); |
|
42 }; |
|
43 |
|
44 SpecialPowers.pushPrefEnv( |
|
45 {'set':[["font.minimum-size.ja", 120]]}, |
|
46 function() { |
|
47 window.open("bug687297_a.html", '_blank'); |
|
48 } |
|
49 ); |
|
50 |
|
51 </script> |
|
52 </pre> |
|
53 </body> |
|
54 </html> |