Wed, 31 Dec 2014 06:55:50 +0100
Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2
michael@0 | 1 | <!DOCTYPE html> |
michael@0 | 2 | <html class="reftest-wait"> |
michael@0 | 3 | <head> |
michael@0 | 4 | <title>Testcase Bug 851514</title> |
michael@0 | 5 | <style> |
michael@0 | 6 | #parent { |
michael@0 | 7 | position: fixed; |
michael@0 | 8 | height: 30px; |
michael@0 | 9 | width: 30px; |
michael@0 | 10 | background: green; |
michael@0 | 11 | left: 70px; |
michael@0 | 12 | top: 70px; |
michael@0 | 13 | overflow:hidden; |
michael@0 | 14 | display: none; /* So we can make sure there is only one frame construction |
michael@0 | 15 | and one reflow for the parent + child thing */ |
michael@0 | 16 | } |
michael@0 | 17 | #child { |
michael@0 | 18 | position: fixed; |
michael@0 | 19 | top: auto; |
michael@0 | 20 | left: auto; |
michael@0 | 21 | width: 10px; |
michael@0 | 22 | height: 10px; |
michael@0 | 23 | background: purple; |
michael@0 | 24 | } |
michael@0 | 25 | </style> |
michael@0 | 26 | <script> |
michael@0 | 27 | function doTest() { |
michael@0 | 28 | var par = document.getElementById("parent"); |
michael@0 | 29 | // Flush layout |
michael@0 | 30 | par.getBoundingClientRect(); |
michael@0 | 31 | par.style.display = "block"; |
michael@0 | 32 | document.documentElement.className = ""; |
michael@0 | 33 | } |
michael@0 | 34 | </script> |
michael@0 | 35 | </head> |
michael@0 | 36 | <body onload="doTest();"> |
michael@0 | 37 | <div id="parent"> |
michael@0 | 38 | <div id="child"></div> |
michael@0 | 39 | </div> |
michael@0 | 40 | The purple block should be inside the green block. |
michael@0 | 41 | </body> |
michael@0 | 42 | </html> |