| <!-- Based on fast/repaint/invisible-objects.html --> |
| <html> |
| <head> |
| <script src="resources/paint-invalidation-test.js"></script> |
| <script> |
| window.expectedPaintInvalidationObjects = [ |
| "InlineTextBox ''", |
| "RootInlineBox", |
| "LayoutText #text", |
| "InlineTextBox 'is invisible'", |
| ]; |
| function paintInvalidationTest() |
| { |
| document.getElementById("block").style.height = "100px"; |
| document.getElementById("inline").innerText = "is invisible"; |
| } |
| </script> |
| </head> |
| <body onload="runPaintInvalidationTest()"> |
| <div style="visibility: hidden; position: relative;"> |
| <span id="inline">Invisible text</span> |
| </div> |
| <div style="visibility: hidden; position: relative;"> |
| <div id="block" style="height: 50px;"></div> |
| </div> |
| </body> |
| </html> |