Bug 1880216 - Migrate Fenix docs into Sphinx. r=owlish,geckoview-reviewers,android...
[gecko.git] / dom / html / test / test_bug95530.html
blobc4a3078d3e6a549f32d4cb078df43bf692537240
1 <!DOCTYPE html>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=95530
5 -->
6 <head>
7 <meta charset="utf-8">
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 **/
14 function run() {
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");
23 SimpleTest.finish();
25 SimpleTest.waitForExplicitFinish();
26 window.addEventListener("load", run);
27 </script>
28 </head>
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>
31 <p id="display"></p>
32 <div id="content" style="display: none">
34 </div>
35 <pre id="test">
36 </pre>
37 </body>
38 </html>