4 https://bugzilla.mozilla.org/show_bug.cgi?id=95530
8 <title>Test for Bug
95530</title>
9 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css"/>
11 <script type=
"application/javascript">
13 /** Test for Bug
95530 **/
15 is(document.compatMode,
"CSS1Compat",
"Ensure we are in standards mode, not quirks mode.");
17 var body = document.getElementsByTagName(
"body");
19 is(computedStyle(body[
0],
"margin-top"),
"100px",
"Ensure margin-top matches topmargin");
20 is(computedStyle(body[
0],
"margin-bottom"),
"150px",
"Ensure margin-bottom matches bottommargin");
21 is(computedStyle(body[
0],
"margin-left"),
"23px",
"Ensure margin-left matches leftmargin");
22 is(computedStyle(body[
0],
"margin-right"),
"64px",
"Ensure margin-right matches rightmargin");
25 SimpleTest.waitForExplicitFinish();
26 window.addEventListener(
"load", run);
29 <body topmargin=
"100" bottommargin=
"150" leftmargin=
"23" rightmargin=
"64">
30 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=95530">Mozilla Bug
95530</a>
32 <div id=
"content" style=
"display: none">