| <!-- Based on fast/box-shadow/negative-shadow-box-shrink.html --> |
| <!DOCTYPE html> |
| <script src="resources/paint-invalidation-test.js"></script> |
| <script> |
| window.expectedPaintInvalidationObjects = [ |
| "LayoutBlockFlow DIV id='inner2'", |
| "LayoutBlockFlow DIV id='outer'", |
| ]; |
| function paintInvalidationTest() |
| { |
| document.getElementById('inner2').style.display = 'none'; |
| } |
| </script> |
| <body style="margin: 100px" onload="runPaintInvalidationTest()"> |
| <div id="outer" style="box-shadow: 40px -40px #F00;"> |
| <div id="inner1" style="height: 100px; background-color: blue"></div> |
| <div id="inner2" style="height: 100px; background-color: green"></div> |
| </div> |
| </body> |