| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <link rel="stylesheet" href="compositor-touch-hit-rects.css"> | 4 <link rel="stylesheet" href="compositor-touch-hit-rects.css"> |
| 5 <style> | 5 <style> |
| 6 html { | 6 html { |
| 7 font-size: 10px; | 7 font-size: 10px; |
| 8 } | 8 } |
| 9 .testcase, .testcase * { | 9 .testcase, .testcase * { |
| 10 border: 1px solid red; | 10 border: 1px solid red; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 document.documentElement.setAttribute('dumpRenderTree', 'true'); | 32 document.documentElement.setAttribute('dumpRenderTree', 'true'); |
| 33 | 33 |
| 34 function handler() {}; | 34 function handler() {}; |
| 35 frameElement.addHandlers = function() { | 35 frameElement.addHandlers = function() { |
| 36 document.getElementById('fixed').addEventListener('touchstart', handler, fal
se); | 36 document.getElementById('fixed').addEventListener('touchstart', handler, fal
se); |
| 37 } | 37 } |
| 38 frameElement.removeHandlers = function() { | 38 frameElement.removeHandlers = function() { |
| 39 document.getElementById('fixed').removeEventListener('touchstart', handler,
false); | 39 document.getElementById('fixed').removeEventListener('touchstart', handler,
false); |
| 40 } | 40 } |
| 41 // Scrolling shouldn't affect the fixed-position div | 41 // Scrolling shouldn't affect the fixed-position div |
| 42 document.body.scrollTop = 105; | 42 document.scrollingElement.scrollTop = 105; |
| 43 </script> | 43 </script> |
| 44 </body> | 44 </body> |
| 45 </html> | 45 </html> |
| OLD | NEW |