summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/repaint/resize-scrollable-iframe.html
blob: c7baa532dd8850c2435d9320cc5bbf6787d9b758 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE html>
<script src="resources/text-based-repaint.js"></script>
<script>
function repaintTest() {
  document.getElementById('iframe').style.width='300px';
  document.getElementById('iframe').style.height='300px';
}
onload = runRepaintTest;
</script>
<div style="height: 100px">
Tests paint invalidation of scrollbars and scroll corner when a srollable iframe is resized.
Passes if the scrollbars and scroll corner are repainted correctly, and no under-invalidation
in slimming-paint mode (with slimmingPaintUnderInvalidationChecking enabled).
</div>
<iframe id="iframe" style="border: none; width: 100px; height: 100px"
  srcdoc="<div style='width: 1000px; height: 1000px'></div>">
</iframe>