layout/generic/test/test_bug416168.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/generic/test/test_bug416168.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,44 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html>
     1.6 +<!--
     1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=416168
     1.8 +-->
     1.9 +<head>
    1.10 +  <title>Test for Bug 416168</title>
    1.11 +  <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
    1.12 +  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
    1.13 +</head>
    1.14 +<body>
    1.15 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=416168">Mozilla Bug 416168</a>
    1.16 +<p id="display">
    1.17 +
    1.18 +<div id="a" style="overflow: hidden; outline: 1px solid black; height: 0px;">
    1.19 +  <div style="margin-top: 50px; width:20px; height:20px;"></div>
    1.20 +</div>
    1.21 +
    1.22 +<div id="b" style="overflow: hidden; outline: 1px solid black; width:0px; height: 100px;">
    1.23 +</div>
    1.24 +
    1.25 +<div id="c" style="overflow: hidden; outline: 1px solid black; width:100px; height: 0px;">
    1.26 +</div>
    1.27 +
    1.28 +</p>
    1.29 +<div id="content" style="display: none">
    1.30 +
    1.31 +</div>
    1.32 +<pre id="test">
    1.33 +<script class="testbody" type="text/javascript">
    1.34 +
    1.35 +var a = document.getElementById("a");
    1.36 +is(a.scrollHeight, 70, "margin-top included");
    1.37 +
    1.38 +var b = document.getElementById("b");
    1.39 +is(b.scrollHeight, 100, "zero width");
    1.40 +
    1.41 +var c = document.getElementById("c");
    1.42 +is(c.scrollWidth, 100, "zero height");
    1.43 +
    1.44 +</script>
    1.45 +</pre>
    1.46 +</body>
    1.47 +</html>

mercurial