<!DOCTYPE html> | |
<html> | |
<!-- | |
| This tests that when setting cssText, it changes the layout when needed. | |
--> | |
<head> | |
<style> | |
body { | |
margin: 0px; | |
} | |
div { display:block; background: #ddd; } | |
</style> | |
</head> | |
<body> | |
<script> | |
if (window.testRunner) { | |
window.testRunner.waitUntilDone(); | |
} | |
window.onload = function () { | |
document.getElementById('box').style.cssText = "height: 20px;"; | |
if (window.testRunner) { | |
window.testRunner.notifyDone(); | |
} | |
}; | |
</script> | |
<div id="box"></div> | |
</body> | |
</html> |