4 https://bugzilla.mozilla.org/show_bug.cgi?id=363146
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" />
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>
19 <td><div style=
"width:400px; height:100px;">Cell
</div></td>
23 <div style=
"width:100px; height:400px; position:relative;">
24 <table id=
"t2" border=
"0" cellspacing=
"0" cellpadding=
"0"
26 <caption align=
"top" style=
"height:100px;">Caption
</caption>
28 <td><div style=
"width:400px; height:100px;">Cell
</div></td>
34 <div id=
"content" style=
"display: none">
38 <script class=
"testbody" type=
"text/javascript">
40 var c = window.getComputedStyle(document.getElementById(
"t1"),
"");
42 is(c.height,
"100px");
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");