blob: ab57557aa81ec7433e550b92459397b11b2dc0da (
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
|
<!DOCTYPE HTML>
<meta charset=UTF-8>
<title>Testcase, bug 1595199</title>
<style>
#outer {
background: red;
overflow: hidden;
}
#wrapper1 {
background: red;
height: 100%;
}
#wrapper2 {
background: fuchsia;
height: 100%;
}
#inner {
background: blue;
height: 100px;
width: 50%;
}
</style>
<div id="outer" style="height: 50px">
<div id="wrapper1">
<div id="wrapper2">
<div id="inner">
</div>
</div>
</div>
</div>
<script>
window.addEventListener("load", function load_handler() {
document.getElementById("wrapper2").offsetHeight; // flush layout
document.getElementById("outer").style.height = "auto";
});
</script>
|