OLD | NEW |
| 1 <!-- Based on compositing/squashing/tricky-element-removal-crash.html --> |
1 <!DOCTYPE html> | 2 <!DOCTYPE html> |
2 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> | 3 <script src="resources/paint-invalidation-test.js"></script> |
3 <div style="width: 200px; height: 200px; transform: translateZ(0); background-co
lor: salmon;"></div> | 4 <div style="width: 200px; height: 200px; transform: translateZ(0); background-co
lor: salmon;"></div> |
4 <div style="position: absolute; z-index: 0; top: 8px; width: 100px; height: 100p
x"> | 5 <div style="position: absolute; z-index: 0; top: 8px; width: 100px; height: 100p
x"> |
5 <div id="target" style="width: 100px; height: 100px; transform: translateZ(0);
background-color: blue"> | 6 <div id="target" style="width: 100px; height: 100px; transform: translateZ(0);
background-color: blue"> |
6 </div> | 7 </div> |
7 <script> | 8 <script> |
8 function repaintTest() { | 9 window.expectedPaintInvalidationObjects = [ |
| 10 "LayoutBlockFlow DIV id='target'", |
| 11 ]; |
| 12 function paintInvalidationTest() { |
9 document.querySelector('#target').remove(); | 13 document.querySelector('#target').remove(); |
10 } | 14 } |
11 | 15 |
12 runRepaintTest(); | 16 runPaintInvalidationTest(); |
13 </script> | 17 </script> |
OLD | NEW |