| OLD | NEW |
| 1 <html id='root'> | 1 <html id='root'> |
| 2 <head> | 2 <head> |
| 3 <style> | 3 <style> |
| 4 .container { | 4 .container { |
| 5 width: 400px; | 5 width: 400px; |
| 6 height: 400px; | 6 height: 400px; |
| 7 overflow: scroll; | 7 overflow: scroll; |
| 8 margin: 20px; | 8 margin: 20px; |
| 9 border: 1px solid black; | 9 border: 1px solid black; |
| 10 position: relative; | 10 position: relative; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 } else { | 70 } else { |
| 71 iframeOutput = e.data; | 71 iframeOutput = e.data; |
| 72 shouldFinishTest = true; | 72 shouldFinishTest = true; |
| 73 } | 73 } |
| 74 } | 74 } |
| 75 } | 75 } |
| 76 | 76 |
| 77 function doTest() | 77 function doTest() |
| 78 { | 78 { |
| 79 var pre = document.getElementById('console'); | 79 var pre = document.getElementById('console'); |
| 80 var testDescription = 'This test ensures that RenderLayer::scrollsWi
thRespectTo ' + | 80 var testDescription = 'This test ensures that Layer::scrollsWithResp
ectTo ' + |
| 81 'always returns the correct answer on relative
ly ' + | 81 'always returns the correct answer on relative
ly ' + |
| 82 '"basic" elements as well as fixed- and absolu
te-' + | 82 '"basic" elements as well as fixed- and absolu
te-' + |
| 83 'positioned elements (ie, those with non-obvio
us ' + | 83 'positioned elements (ie, those with non-obvio
us ' + |
| 84 'containing blocks), and iframes.\n\n'; | 84 'containing blocks), and iframes.\n\n'; |
| 85 var text = document.createTextNode(testDescription); | 85 var text = document.createTextNode(testDescription); |
| 86 pre.appendChild(text); | 86 pre.appendChild(text); |
| 87 | 87 |
| 88 if(!window.internals) | 88 if(!window.internals) |
| 89 return; | 89 return; |
| 90 | 90 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 </div> | 131 </div> |
| 132 <div class='scrolled' style='background-color: blue; position: absolute'
id='scrolled3'> | 132 <div class='scrolled' style='background-color: blue; position: absolute'
id='scrolled3'> |
| 133 <div class='descendant'></div> | 133 <div class='descendant'></div> |
| 134 </div> | 134 </div> |
| 135 </div> | 135 </div> |
| 136 <iframe id='inner-iframe' src='resources/scrolls-with-respect-to-iframe.html
' style='width: 500px; height: 500px; position: relative; top: 500px;'></iframe> | 136 <iframe id='inner-iframe' src='resources/scrolls-with-respect-to-iframe.html
' style='width: 500px; height: 500px; position: relative; top: 500px;'></iframe> |
| 137 <div class='positioned' id='successor'></div> | 137 <div class='positioned' id='successor'></div> |
| 138 <pre id='console'></pre> | 138 <pre id='console'></pre> |
| 139 </body> | 139 </body> |
| 140 </html> | 140 </html> |
| OLD | NEW |