blob: 641a46acf5b6a85a38b282a29c237d8bda0e63ce [file] [log] [blame]
<html>
<head>
<script>
function runTest() {
if (window.layoutTestController)
layoutTestController.dumpAsText();
var d = document.getElementById('theDiv');
d.style.display = 'block';
var style = document.defaultView.getComputedStyle(d, '');
if (style && style.display == 'block')
document.getElementById('result').innerHTML = 'SUCCESS';
}
</script>
</head>
<body onload="runTest()">
<div id="theDiv" style="display:none;"></div>
<div>This tests that getComputedStyle does a relayout before returning the computed style.</div>
<div id="result">FAILURE</div>
</body>
</html>