| OLD | NEW |
| (Empty) |
| 1 <!-- Based on fast/repaint/filter-invalidation-with-composited-container-change.
html --> | |
| 2 <!DOCTYPE html> | |
| 3 <style> | |
| 4 .green { | |
| 5 background-color: green; | |
| 6 } | |
| 7 .box { | |
| 8 width: 200px; | |
| 9 height: 200px; | |
| 10 } | |
| 11 .drop-shadowed { | |
| 12 -webkit-filter: drop-shadow(100px 100px 10px red); | |
| 13 } | |
| 14 .blurry { | |
| 15 -webkit-filter: blur(10px); | |
| 16 transform: translateZ(0); | |
| 17 } | |
| 18 </style> | |
| 19 <!-- | |
| 20 This test checks that we correctly invalidate filters along with a paint inv
alidation container change. | |
| 21 There should be no red below. | |
| 22 --> | |
| 23 <div class="green drop-shadowed box" id="box"></div> | |
| 24 <script src="resources/paint-invalidation-test.js"></script> | |
| 25 <script> | |
| 26 function paintInvalidationTest() { | |
| 27 var box = document.getElementById('box'); | |
| 28 box.classList.toggle('drop-shadowed'); | |
| 29 box.classList.toggle('blurry'); | |
| 30 } | |
| 31 runPaintInvalidationTest(); | |
| 32 </script> | |
| OLD | NEW |