4 https://bugzilla.mozilla.org/show_bug.cgi?id=379741
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" />
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>
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");