Bug 458861. Validate TrueType headers before activating downloaded font. r=roc, sr...
[wine-gecko.git] / layout / style / test / test_bug379741.html
blobd86ee6eb572e4a5f0bb5f432870bc6657016ed53
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=379741
5 -->
6 <head>
7 <title>Test for Bug 379741</title>
8 <script type="text/javascript" src="/MochiKit/MochiKit.js"></script>
9 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
11 </head>
12 <body>
13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=379741">Mozilla Bug 379741</a>
14 <div id="content" style="display: none">
15 <div id="noframe"></div>
16 </div>
17 <pre id="test">
18 <script class="testbody" type="text/javascript">
20 /** Test for Bug 379741 **/
22 var cs = getComputedStyle(document.getElementById("noframe"), "");
23 ok(cs.marginTop == "0" || cs.marginTop == "0px",
24 "computed margin-top is not none");
25 ok(cs.marginRight == "0" || cs.marginRight == "0px",
26 "computed margin-right is not none");
27 ok(cs.marginBottom == "0" || cs.marginBottom == "0px",
28 "computed margin-bottom is not none");
29 ok(cs.marginLeft == "0" || cs.marginLeft == "0px",
30 "computed margin-left is not none");
31 ok(cs.paddingTop == "0" || cs.paddingTop == "0px",
32 "computed padding-top is not none");
33 ok(cs.paddingRight == "0" || cs.paddingRight == "0px",
34 "computed padding-right is not none");
35 ok(cs.paddingBottom == "0" || cs.paddingBottom == "0px",
36 "computed padding-bottom is not none");
37 ok(cs.paddingLeft == "0" || cs.paddingLeft == "0px",
38 "computed padding-left is not none");
39 ok(cs.markerOffset == "auto",
40 "computed marker-offset is not none");
42 </script>
43 </pre>
44 </body>
45 </html>