OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 | 2 |
3 <html> | 3 <html> |
4 <head> | 4 <head> |
5 <style> | 5 <style> |
6 .box { | 6 .box { |
7 position: relative; | 7 position: relative; |
8 height: 200px; | 8 height: 200px; |
9 width: 200px; | 9 width: 200px; |
10 background-color: green; | 10 background-color: green; |
11 } | 11 } |
12 | 12 |
13 .blurry { | 13 .blurry { |
14 margin: 50px; | 14 margin: 50px; |
15 -webkit-filter: blur(10px); | 15 -webkit-filter: blur(10px); |
16 } | 16 } |
17 | 17 |
18 #change { | 18 #change { |
19 height: 100px; | 19 height: 100px; |
20 width: 100px; | 20 width: 100px; |
21 top: 50px; | 21 top: 50px; |
22 left: 50px; | 22 left: 50px; |
23 background-color: red; | 23 background-color: red; |
24 } | 24 } |
25 </style> | 25 </style> |
26 <script src="../../resources/run-after-display.js"></script> | 26 <script src="../../resources/run-after-display.js"></script> |
27 <script> | 27 <script> |
28 if (window.testRunner) { | 28 if (window.testRunner) { |
29 testRunner.dumpAsTextWithPixelResults(); | 29 testRunner.dumpAsTextWithPixelResults(); |
30 // Force software rendering mode. | |
31 testRunner.overridePreference("WebKitAcceleratedCompositingEnabled", "
0"); | |
32 testRunner.waitUntilDone(); | 30 testRunner.waitUntilDone(); |
33 } | 31 } |
34 | 32 |
35 function repaintTest() | 33 function repaintTest() |
36 { | 34 { |
37 runAfterDisplay(function() { | 35 runAfterDisplay(function() { |
38 document.getElementById('change').style.backgroundColor = "green"; | 36 document.getElementById('change').style.backgroundColor = "green"; |
39 if (window.testRunner) | 37 if (window.testRunner) |
40 testRunner.notifyDone(); | 38 testRunner.notifyDone(); |
41 }); | 39 }); |
42 } | 40 } |
43 </script> | 41 </script> |
44 </head> | 42 </head> |
45 <body onload="repaintTest()"> | 43 <body onload="repaintTest()"> |
46 | 44 |
47 <div class="blurry box"> | 45 <div class="blurry box"> |
48 <div id="change" class="box"> | 46 <div id="change" class="box"> |
49 </div> | 47 </div> |
50 </div> | 48 </div> |
51 | 49 |
52 </body> | 50 </body> |
53 </html> | 51 </html> |
OLD | NEW |