OLD | NEW |
| 1 <!-- Based on fast/repaint/filter-repaint-accelerated-child-with-filter-child.ht
ml --> |
1 <!DOCTYPE html> | 2 <!DOCTYPE html> |
2 <style> | 3 <style> |
3 div { | 4 div { |
4 width: 200px; | 5 width: 200px; |
5 height: 200px; | 6 height: 200px; |
6 } | 7 } |
7 | 8 |
8 .blur { | 9 .blur { |
9 -webkit-filter: blur(10px); | 10 -webkit-filter: blur(10px); |
10 } | 11 } |
(...skipping 10 matching lines...) Expand all Loading... |
21 background-color: green; | 22 background-color: green; |
22 } | 23 } |
23 </style> | 24 </style> |
24 | 25 |
25 <div class="blur"> | 26 <div class="blur"> |
26 <div class="accelerated"> | 27 <div class="accelerated"> |
27 <div class="drop-shadow" id="resize"></div> | 28 <div class="drop-shadow" id="resize"></div> |
28 </div> | 29 </div> |
29 </div> | 30 </div> |
30 | 31 |
31 <script src="resources/text-based-repaint.js"></script> | 32 <script src="resources/paint-invalidation-test.js"></script> |
32 <script> | 33 <script> |
33 | 34 |
34 function repaintTest() { | 35 window.expectedPaintInvalidationObjects = [ |
| 36 "LayoutBlockFlow DIV id='resize' class='drop-shadow'", |
| 37 ]; |
| 38 function paintInvalidationTest() { |
35 var resizeElement = document.getElementById("resize"); | 39 var resizeElement = document.getElementById("resize"); |
36 resizeElement.style.width = "100px"; | 40 resizeElement.style.width = "100px"; |
37 } | 41 } |
38 window.onload = runRepaintTest; | 42 window.onload = runPaintInvalidationTest; |
39 </script> | 43 </script> |
OLD | NEW |