OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <link rel="stylesheet" href="resources/compositor-touch-hit-rects.css"> |
| 5 <style> |
| 6 .scroll { |
| 7 overflow-y: scroll; |
| 8 /* Make this just big enough for clipping to occur so we can verify the |
| 9 hit rect is also clipped. */ |
| 10 height: 23px; |
| 11 border: 1px solid lightgrey; |
| 12 } |
| 13 </style> |
| 14 </head> |
| 15 <body> |
| 16 <p id="description"> |
| 17 This test verifies the hit test regions given to the compositor specifically aro
und non-composited |
| 18 overflow scroll elements. |
| 19 </p> |
| 20 |
| 21 <div id="tests"> |
| 22 <div class="scroll" id="scrollContainer"> |
| 23 <div style='height: 13px;'></div> |
| 24 <div class="testcase" id="scrollContent">Scroll content</div> |
| 25 <div style='height: 50px;'></div> |
| 26 </div> |
| 27 |
| 28 <div class="scroll testcase" id="scrollContainerWithHandler"> |
| 29 <div style='height: 13px;'></div> |
| 30 <div>Scroll content</div> |
| 31 <div style='height: 50px;'></div> |
| 32 </div> |
| 33 </div> |
| 34 |
| 35 <div id="console"></div> |
| 36 <div style="height: 1000px;"></div> |
| 37 <script src="resources/compositor-touch-hit-rects.js"></script> |
| 38 <script> |
| 39 // Make fixed-position cases slightly more interesting |
| 40 window.scrollTo(0, 13); |
| 41 |
| 42 if (window.internals) { |
| 43 window.internals.settings.setAcceleratedCompositingForOverflowScrollEnabled(fa
lse); |
| 44 } |
| 45 </script> |
| 46 </body> |
OLD | NEW |