<!-- Based on fast/repaint/button-inner-no-repaint.html --> | |
<!DOCTYPE html> | |
<script src="resources/paint-invalidation-test.js"></script> | |
<script> | |
if (window.testRunner) | |
testRunner.dumpAsText(); | |
function paintInvalidationTest() { | |
document.getElementsByTagName('button')[0].style.maxWidth = '1000px'; | |
} | |
onload = runPaintInvalidationTest; | |
</script> | |
<style> | |
button { | |
position: absolute; | |
width: 300px; | |
height: 100px; | |
} | |
</style> | |
<button>Should not repaint on style change that doesn't change visual.</button> |