<!DOCTYPE html> | |
<script src="resources/text-based-repaint.js"></script> | |
<script> | |
<!-- Should full repaint because the actual border radius changes. --> | |
function repaintTest() | |
{ | |
document.getElementById('target').style.width = '200px'; | |
} | |
window.onload = runRepaintTest; | |
</script> | |
<style> | |
body { | |
margin: 0; | |
} | |
div { | |
position: absolute; | |
width: 80px; | |
height: 200px; | |
top: 100px; | |
left: 100px; | |
background-color: green; | |
border-radius: 50px; | |
outline: 5px solid green; | |
outline-offset: 50px; | |
} | |
</style> | |
<div id="target"></div> |