| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <style> | 2 <style> |
| 3 #container { | 3 #container { |
| 4 height: 4000px; | 4 height: 4000px; |
| 5 background-color: red; | 5 background-color: red; |
| 6 } | 6 } |
| 7 .noScroll { | 7 .noScroll { |
| 8 overflow-y: hidden; | 8 overflow-y: hidden; |
| 9 } | 9 } |
| 10 #overlay { | 10 #overlay { |
| 11 bottom: 0; | 11 bottom: 0; |
| 12 left: 0; | 12 left: 0; |
| 13 position: fixed; | 13 position: fixed; |
| 14 right: 0; | 14 right: 0; |
| 15 top: 0; | 15 top: 0; |
| 16 background-color: green; | 16 background-color: rgba(0, 128, 0, 0.99); |
| 17 } | 17 } |
| 18 .hidden { | 18 .hidden { |
| 19 display: none; | 19 display: none; |
| 20 } | 20 } |
| 21 input { | 21 input { |
| 22 position: fixed; | 22 position: fixed; |
| 23 z-index: 10; | 23 z-index: 10; |
| 24 bottom: 0; | 24 bottom: 0; |
| 25 } | 25 } |
| 26 </style> | 26 </style> |
| (...skipping 10 matching lines...) Expand all Loading... |
| 37 overlay.classList.toggle('hidden'); | 37 overlay.classList.toggle('hidden'); |
| 38 document.body.classList.toggle('noScroll'); | 38 document.body.classList.toggle('noScroll'); |
| 39 } | 39 } |
| 40 | 40 |
| 41 if (window.testRunner) | 41 if (window.testRunner) |
| 42 window.testRunner.waitUntilDone(); | 42 window.testRunner.waitUntilDone(); |
| 43 | 43 |
| 44 window.scrollTo(0, 4000); | 44 window.scrollTo(0, 4000); |
| 45 runAfterLayoutAndPaint(runRepaintTest); | 45 runAfterLayoutAndPaint(runRepaintTest); |
| 46 </script> | 46 </script> |
| OLD | NEW |