<!DOCTYPE html> | |
<script src="resources/text-based-repaint.js"></script> | |
<script> | |
function repaintTest() { | |
document.getElementsByTagName('button')[0].style.maxWidth = '1000px'; | |
} | |
onload = runRepaintTest; | |
</script> | |
<style> | |
button { | |
position: absolute; | |
width: 300px; | |
height: 100px; | |
} | |
</style> | |
<button>Should not repaint on style change that doesn't change visual.<br></button> |