| <!-- Based on fast/repaint/scrollbar-invalidation-on-resize-with-border.html --> |
| <!DOCTYPE html> |
| <script src="resources/paint-invalidation-test.js"></script> |
| <script> |
| window.expectedPaintInvalidationObjects = [ |
| "HorizontalScrollbar", |
| "VerticalScrollbar", |
| "VerticalScrollbar", |
| "HorizontalScrollbar", |
| "HorizontalScrollbar", |
| "LayoutBlockFlow (positioned) DIV id='scrollable'", |
| ]; |
| function paintInvalidationTest() { |
| document.getElementById('scrollable').style.width = '300px'; |
| } |
| onload = runPaintInvalidationTest; |
| </script> |
| <style> |
| #scrollable { |
| overflow: scroll; |
| position: absolute; |
| top: 50px; |
| width: 100px; |
| height: 100px; |
| border: solid 10px green; |
| } |
| </style> |
| When a scrollable area is resized, the invalidation area should cover non-composited scrollbars. |
| <div id="scrollable"></div> |
| |