blob: 28ea86c22ce3c6a440b281e5c8190c81cf04d8f1 [file] [log] [blame]
<!DOCTYPE html>
<script src="../resources/text-based-repaint.js"></script>
<script>
function repaintTest() {
document.getElementById('target').style.width = '300px';
document.getElementById('target').style.height = '300px';
}
window.onload = runRepaintAndPixelTest;
</script>
<style>
body {
margin: 0;
}
#container {
position: absolute;
top: 100px;
left: 100px;
width: 200px;
height: 200px;
overflow: hidden;
}
#target {
width: 100px;
height: 100px;
border: green 10px solid;
background-color: blue;
}
</style>
Tests invalidation when a box with border is resized within a clipping container.
Passes if the result paint rects don't exceed the container.
<div id="container">
<div id="target"></div>
</div>