| OLD | NEW |
| 1 <!-- This test asserts that blit-scrolling is disabled when blur is applied on a
layer | 1 <!-- This test asserts that blit-scrolling is disabled when blur is applied on a
layer |
| 2 that contains a fixed positioned object. | 2 that contains a fixed positioned object. |
| 3 One fixed black bar should be visible at the top of the page. The page shoul
d be scrolled | 3 One fixed black bar should be visible at the top of the page. The page shoul
d be scrolled |
| 4 100px and no red should be visible. The rest of the page should be green. | 4 100px and no red should be visible. The rest of the page should be green. |
| 5 --> | 5 --> |
| 6 <!DOCTYPE html> | 6 <!DOCTYPE html> |
| 7 <html> | 7 <html> |
| 8 <head> | 8 <head> |
| 9 <script> | 9 <script> |
| 10 if (window.testRunner) { | 10 if (window.testRunner) { |
| 11 // Force software rendering mode. | 11 // Force software rendering mode. |
| 12 window.testRunner.overridePreference("WebKitAcceleratedCompositi
ngEnabled", "0"); | 12 window.testRunner.overridePreference("WebKitAcceleratedCompositi
ngEnabled", "0"); |
| 13 window.testRunner.waitUntilDone(); |
| 13 } | 14 } |
| 14 </script> | 15 </script> |
| 15 <!-- Make sure the mock scrollbars are enabled after the call to overrid
ePreference, otherwise the setting will be overwritten. --> | 16 <!-- Make sure the mock scrollbars are enabled after the call to overrid
ePreference, otherwise the setting will be overwritten. --> |
| 16 <script src="../../compositing/resources/mock_scrollbars.js"></script> | 17 <script src="../../compositing/resources/mock_scrollbars.js"></script> |
| 17 <style> | 18 <style> |
| 18 body { | 19 body { |
| 19 margin: 0px; | 20 margin: 0px; |
| 20 border: 0px; | 21 border: 0px; |
| 21 padding: 0px; | 22 padding: 0px; |
| 22 } | 23 } |
| 23 | 24 |
| 24 .blur { | 25 .blur { |
| 25 -webkit-filter: blur(1px); | 26 -webkit-filter: blur(1px); |
| 26 } | 27 } |
| 27 | 28 |
| 28 #fixedBox { | 29 #fixedBox { |
| 29 position: fixed; | 30 position: fixed; |
| 30 background-color: #000000; | 31 background-color: #000000; |
| 31 height: 100px; | 32 height: 100px; |
| 32 width: 100%; | 33 width: 100%; |
| 33 } | 34 } |
| 34 | 35 |
| 35 #redBox { | 36 #redBox { |
| 36 background-color: red; | 37 background-color: red; |
| 37 height: 200px; | 38 height: 200px; |
| 38 } | 39 } |
| 39 | 40 |
| 40 #greenBox { | 41 #greenBox { |
| 41 background-color: green; | 42 background-color: green; |
| 42 height: 1000px; | 43 height: 1000px; |
| 43 } | 44 } |
| 44 </style> | 45 </style> |
| 45 <script src="../../fast/repaint/resources/repaint.js"></script> | 46 <script src="../../resources/run-after-display.js"></script> |
| 46 <script type="text/javascript"> | 47 <script type="text/javascript"> |
| 47 function repaintTest() { | 48 function repaintTest() { |
| 48 window.scrollTo(0, 100); | 49 runAfterDisplay(function() { |
| 50 window.scrollTo(0, 100); |
| 51 if (window.testRunner) |
| 52 testRunner.notifyDone(); |
| 53 }); |
| 49 } | 54 } |
| 50 </script> | 55 </script> |
| 51 </head> | 56 </head> |
| 52 <body onload="runRepaintTest()"> | 57 <body onload="repaintTest()"> |
| 53 <div class="blur"> | 58 <div class="blur"> |
| 54 <div id="fixedBox"></div> | 59 <div id="fixedBox"></div> |
| 55 <div id="redBox"></div> | 60 <div id="redBox"></div> |
| 56 <div id="greenBox"></div> | 61 <div id="greenBox"></div> |
| 57 </div> | 62 </div> |
| 58 </body> | 63 </body> |
| 59 </html> | 64 </html> |
| OLD | NEW |