Bug 1839315: part 4) Link from `SheetLoadData::mWasAlternate` to spec. r=emilio DONTBUILD
[gecko.git] / layout / style / test / test_bug379741.html
blob7bb2463ce7c027edc5b9ae08af96570c2b41fabd
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 src="/tests/SimpleTest/SimpleTest.js"></script>
9 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
10 </head>
11 <body>
12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=379741">Mozilla Bug 379741</a>
13 <div id="content" style="display: none">
14 <div id="noframe"></div>
15 </div>
16 <pre id="test">
17 <script class="testbody" type="text/javascript">
19 /** Test for Bug 379741 **/
21 var cs = getComputedStyle(document.getElementById("noframe"), "");
22 ok(cs.marginTop == "0" || cs.marginTop == "0px",
23 "computed margin-top is not none");
24 ok(cs.marginRight == "0" || cs.marginRight == "0px",
25 "computed margin-right is not none");
26 ok(cs.marginBottom == "0" || cs.marginBottom == "0px",
27 "computed margin-bottom is not none");
28 ok(cs.marginLeft == "0" || cs.marginLeft == "0px",
29 "computed margin-left is not none");
30 ok(cs.paddingTop == "0" || cs.paddingTop == "0px",
31 "computed padding-top is not none");
32 ok(cs.paddingRight == "0" || cs.paddingRight == "0px",
33 "computed padding-right is not none");
34 ok(cs.paddingBottom == "0" || cs.paddingBottom == "0px",
35 "computed padding-bottom is not none");
36 ok(cs.paddingLeft == "0" || cs.paddingLeft == "0px",
37 "computed padding-left is not none");
39 </script>
40 </pre>
41 </body>
42 </html>