blob: 98ceb1b69c4a5d59a23d2e486e189963cbda6235 [file] [log] [blame]
<!-- Based on fast/repaint/outline-change-offset.html -->
<!DOCTYPE html>
<script src="resources/paint-invalidation-test.js"></script>
<script>
function paintInvalidationTest() {
document.getElementById('target').style.outlineOffset = '10px';
}
onload = runPaintInvalidationTest;
</script>
<style>
div {
position: absolute;
top: 50px;
left: 50px;
width: 100px;
height: 100px;
}
#target {
outline: green solid 5px;
outline-offset: 5px;
}
#indicator {
outline: red solid 5px;
outline-offset: 10px;
}
</style>
Box should be repainted when outline-offset style changes. Passes if no red.
<div id="indicator"></div>
<div id="target"></div>