<!doctype html> | |
<html> | |
<head> | |
<style> | |
meter { | |
-webkit-appearance: none; | |
} | |
</style> | |
<script type="text/javascript"> | |
function runTest() { | |
bad = document.createElement("meter"); | |
bad.id="bad"; | |
bad.max=100; | |
bad.setAttribute("value",10); | |
bad.setAttribute("style", "border:solid red"); | |
document.getElementsByTagName('body')[0].appendChild(bad); | |
document.body.offsetLeft; | |
document.getElementById('bad').value = 50; | |
} | |
</script> | |
</head> | |
<body onload="runTest();"> | |
</body> | |
</html> |