summaryrefslogtreecommitdiffstats
path: root/layout/reftests/floats/546048-1.html
blob: 42f66377e8fa20b0c20bb43fa16a9aa94010f301 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!DOCTYPE HTML>
<html>
<head>
<title>Testcase, bug 546048</title>
<script type="text/javascript">

// Simulate the image loading after the page loads.
function move_image()
{
    var img = document.querySelector("img");
    var root = document.documentElement;
    img.style.width='5px';
    root.style.display='none';
    img.offsetHeight;
    root.style.display='';
    img.offsetHeight;
    img.style.width='';
}

window.addEventListener("load", move_image);

</script>

<style type="text/css">

body { font-size: 10px }
dl { min-height: 35px; }
dt { float: left; width: 50%; padding-left: 45px; }
span { float: left; }

</style>

</head>

<body>
	<dl>
		<dt>
			<span><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAAAXNSR0IArs4c6QAAAChJREFUSMftzUENAAAIBKDT/p01hQ83KEDN5FQnAoFAIBAIBAKB4EewtloCPhS2RvMAAAAASUVORK5CYII="></span>					Heading<br />
			This is the line that overlaps the float.
	</dl>
	<dl>
		<dt>
			<span><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAAAXNSR0IArs4c6QAAAChJREFUSMftzUENAAAIBKDT/p01hQ83KEDN5FQnAoFAIBAIBAKB4EewtloCPhS2RvMAAAAASUVORK5CYII="></span>					Heading<br />
			Here's an equivalent line where we don't simulate the image loading after the page.
	</dl>

</body>
</html>