<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>
