blob: b3afdba1b92f8785f3579d9352dbc7b6ed0c2d8b [file] [log] [blame]
<!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);
runRepaintTest();
}
</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>