<!DOCTYPE html> | |
<script src="../resources/text-based-repaint.js"></script> | |
<script> | |
function repaintTest() { | |
// Changing the background position for an element without a background | |
// image should not trigger a repaint. | |
document.getElementById("container").style.backgroundPosition = "30% 30%"; | |
} | |
window.onload = runRepaintTest; | |
</script> | |
<style> | |
#container { | |
width: 100px; | |
height: 100px; | |
background-color: green; | |
} | |
</style> | |
<div id="container"></div> |