layout/reftests/floats/546048-1.html

Wed, 31 Dec 2014 07:53:36 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:53:36 +0100
branch
TOR_BUG_3246
changeset 5
4ab42b5ab56c
permissions
-rw-r--r--

Correct small whitespace inconsistency, lost while renaming variables.

michael@0 1 <!DOCTYPE HTML>
michael@0 2 <html>
michael@0 3 <head>
michael@0 4 <title>Testcase, bug 546048</title>
michael@0 5 <script type="text/javascript">
michael@0 6
michael@0 7 // Simulate the image loading after the page loads.
michael@0 8 function move_image()
michael@0 9 {
michael@0 10 var img = document.querySelector("img");
michael@0 11 var root = document.documentElement;
michael@0 12 img.style.width='5px';
michael@0 13 root.style.display='none';
michael@0 14 img.offsetHeight;
michael@0 15 root.style.display='';
michael@0 16 img.offsetHeight;
michael@0 17 img.style.width='';
michael@0 18 }
michael@0 19
michael@0 20 window.addEventListener("load", move_image, false);
michael@0 21
michael@0 22 </script>
michael@0 23
michael@0 24 <style type="text/css">
michael@0 25
michael@0 26 body { font-size: 10px }
michael@0 27 dl { min-height: 35px; }
michael@0 28 dt { float: left; width: 50%; padding-left: 45px; }
michael@0 29 span { float: left; }
michael@0 30
michael@0 31 </style>
michael@0 32
michael@0 33 </head>
michael@0 34
michael@0 35 <body>
michael@0 36 <dl>
michael@0 37 <dt>
michael@0 38 <span><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAAAXNSR0IArs4c6QAAAChJREFUSMftzUENAAAIBKDT/p01hQ83KEDN5FQnAoFAIBAIBAKB4EewtloCPhS2RvMAAAAASUVORK5CYII="></span> Heading<br />
michael@0 39 This is the line that overlaps the float.
michael@0 40 </dl>
michael@0 41 <dl>
michael@0 42 <dt>
michael@0 43 <span><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAAAXNSR0IArs4c6QAAAChJREFUSMftzUENAAAIBKDT/p01hQ83KEDN5FQnAoFAIBAIBAKB4EewtloCPhS2RvMAAAAASUVORK5CYII="></span> Heading<br />
michael@0 44 Here's an equivalent line where we don't simulate the image loading after the page.
michael@0 45 </dl>
michael@0 46
michael@0 47 </body>
michael@0 48 </html>

mercurial