Bug 449371 Firefox/Thunderbird crashes at exit [@ gdk_display_x11_finalize], p=Brian...
[wine-gecko.git] / layout / generic / test / test_bug416168.html
blob7e124495e55919926eba44ccbe79821b0008db47
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=416168
5 -->
6 <head>
7 <title>Test for Bug 416168</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=416168">Mozilla Bug 416168</a>
14 <p id="display">
16 <div id="a" style="overflow: hidden; outline: 1px solid black; height: 0px;">
17 <div style="margin-top: 50px; width:20px; height:20px;"></div>
18 </div>
20 <div id="b" style="overflow: hidden; outline: 1px solid black; width:0px; height: 100px;">
21 </div>
23 <div id="c" style="overflow: hidden; outline: 1px solid black; width:100px; height: 0px;">
24 </div>
26 </p>
27 <div id="content" style="display: none">
29 </div>
30 <pre id="test">
31 <script class="testbody" type="text/javascript">
33 var a = document.getElementById("a");
34 is(a.scrollHeight, 70, "margin-top included");
36 var b = document.getElementById("b");
37 is(b.scrollHeight, 100, "zero width");
39 var c = document.getElementById("c");
40 is(c.scrollWidth, 100, "zero height");
42 </script>
43 </pre>
44 </body>
45 </html>