OLD | NEW |
| (Empty) |
1 <!-- Based on fast/repaint/filter-repaint-accelerated-child-with-filter-child.ht
ml --> | |
2 <!DOCTYPE html> | |
3 <style> | |
4 div { | |
5 width: 200px; | |
6 height: 200px; | |
7 } | |
8 | |
9 .blur { | |
10 -webkit-filter: blur(10px); | |
11 } | |
12 | |
13 .drop-shadow { | |
14 -webkit-filter: drop-shadow(16px 16px 10px black); | |
15 } | |
16 | |
17 .accelerated { | |
18 transform: translateZ(0); | |
19 } | |
20 | |
21 #resize { | |
22 background-color: green; | |
23 } | |
24 </style> | |
25 | |
26 <div class="blur"> | |
27 <div class="accelerated"> | |
28 <div class="drop-shadow" id="resize"></div> | |
29 </div> | |
30 </div> | |
31 | |
32 <script src="resources/paint-invalidation-test.js"></script> | |
33 <script> | |
34 | |
35 function paintInvalidationTest() { | |
36 var resizeElement = document.getElementById("resize"); | |
37 resizeElement.style.width = "100px"; | |
38 } | |
39 window.onload = runPaintInvalidationTest; | |
40 </script> | |
OLD | NEW |