<!DOCTYPE html>
<script src="../resources/text-based-repaint.js"></script>
<script>
function repaintTest() {
document.getElementsByTagName('span')[0].style.color = 'green';
}
onload = function() {
window.scrollTo(200, 200);
runRepaintAndPixelTest();
}
</script>
<style>
body {
margin: 0;
width: 2000px;
height: 2000px;
}
span {
color: red;
}
</style>
Tests if inline element in scrolled view is correctly repainted on style change.
Passes if the text below is fully green;
<div>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<span>Text Text Text Text Text Text Text Text Text Text Text Text Text</span>
</div>