Bug 470455 - test_database_sync_embed_visits.js leaks, r=sdwilsh
[wine-gecko.git] / layout / style / test / test_bug363146.html
blobe862d5e33ba1d5f4bf13bcaea37c028ae9987c8b
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=363146
5 -->
6 <head>
7 <title>Test for Bug 363146</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=363146">Mozilla Bug 363146</a>
14 <div style="width:100px; height:400px; position:relative;">
15 <table id="t1" border="0" cellspacing="0" cellpadding="0"
16 style="border:10px solid black; margin:20px; position:absolute; left:50px; top:35px;">
17 <caption align="top" style="height:100px;">Caption</caption>
18 <tr>
19 <td><div style="width:400px; height:100px;">Cell</div></td>
20 </tr>
21 </table>
22 </div>
23 <div style="width:100px; height:400px; position:relative;">
24 <table id="t2" border="0" cellspacing="0" cellpadding="0"
25 style="margin:20%;">
26 <caption align="top" style="height:100px;">Caption</caption>
27 <tr>
28 <td><div style="width:400px; height:100px;">Cell</div></td>
29 </tr>
30 </table>
31 </div>
32 <p id="display"></p>
33 </div>
34 <div id="content" style="display: none">
36 </div>
37 <pre id="test">
38 <script class="testbody" type="text/javascript">
40 var c = window.getComputedStyle(document.getElementById("t1"), "");
41 is(c.width, "400px");
42 is(c.height, "100px");
43 is(c.left, "50px");
44 is(c.top, "35px");
45 is(c.borderLeftWidth, "10px");
46 is(c.borderRightWidth, "10px");
47 is(c.borderTopWidth, "10px");
48 is(c.borderBottomWidth, "10px");
49 is(c.marginLeft, "20px");
50 is(c.marginRight, "20px");
51 is(c.marginTop, "20px");
52 is(c.marginBottom, "20px");
54 var c2 = window.getComputedStyle(document.getElementById("t2"), "");
55 is(c2.marginLeft, "20px");
56 is(c2.marginRight, "20px");
57 is(c2.marginTop, "20px");
58 is(c2.marginBottom, "20px");
60 </script>
61 </pre>
62 </body>
63 </html>