OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <link rel="stylesheet" href="resources/compositor-touch-hit-rects.css"> | 4 <link rel="stylesheet" href="resources/compositor-touch-hit-rects.css"> |
5 <style> | 5 <style> |
6 .scroll { | 6 .scroll { |
7 overflow-y: scroll; | 7 overflow-y: scroll; |
8 overflow-x: hidden; | 8 overflow-x: hidden; |
9 border: 1px solid lightgrey; | 9 border: 1px solid lightgrey; |
10 height: 50px; | 10 height: 50px; |
11 } | 11 } |
12 #overflowwithborder { | 12 #overflowwithborder { |
13 border: 6px solid lightblue; | 13 border: 6px solid lightblue; |
14 padding: 4px; | 14 padding: 4px; |
15 } | 15 } |
16 #transformed { | 16 #transformed { |
17 -webkit-transform: translate3d(10px, 10px, 0); | 17 transform: translate3d(10px, 10px, 0); |
18 } | 18 } |
19 .relative { | 19 .relative { |
20 position: relative; | 20 position: relative; |
21 /* ensure it doesn't interfere with subsequent layer promotions */ | 21 /* ensure it doesn't interfere with subsequent layer promotions */ |
22 z-index: -1; | 22 z-index: -1; |
23 } | 23 } |
24 </style> | 24 </style> |
25 </head> | 25 </head> |
26 <body> | 26 <body> |
27 <p id="description"> | 27 <p id="description"> |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 | 122 |
123 preRunHandlerForTest['overflowwithborder'] = function(e) { | 123 preRunHandlerForTest['overflowwithborder'] = function(e) { |
124 document.getElementById('overflowwithborder').scrollTop = 18; | 124 document.getElementById('overflowwithborder').scrollTop = 18; |
125 }; | 125 }; |
126 | 126 |
127 if (window.internals) { | 127 if (window.internals) { |
128 window.internals.settings.setPreferCompositingToLCDTextEnabled(true); | 128 window.internals.settings.setPreferCompositingToLCDTextEnabled(true); |
129 } | 129 } |
130 </script> | 130 </script> |
131 </body> | 131 </body> |
OLD | NEW |