blob: 7469647e18073b452dbc870e8a1d302bff8174a5 [file] [log] [blame]
<p>
Test the behavior of <tt>getComputedStyle</tt> when it is called on an element with
<tt>display: none;</tt> while there are pending style sheets.
</p>
<link rel="stylesheet" href="data:text/css,">
<div id="target" style="display: none; width: 100px; height: 100px;"></div>
<div id="result"></div>
<script>
if (window.testRunner)
testRunner.dumpAsText();
var computedWidth = getComputedStyle(document.getElementById("target")).width;
document.getElementById("result").innerText = computedWidth === "100px" ? "PASS" : "FAIL"
</script>