Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / getComputedStyle / pending-stylesheet.html
blob7469647e18073b452dbc870e8a1d302bff8174a5
1 <p>
2 Test the behavior of <tt>getComputedStyle</tt> when it is called on an element with
3 <tt>display: none;</tt> while there are pending style sheets.
4 </p>
5 <link rel="stylesheet" href="data:text/css,">
6 <div id="target" style="display: none; width: 100px; height: 100px;"></div>
7 <div id="result"></div>
8 <script>
9 if (window.testRunner)
10 testRunner.dumpAsText();
12 var computedWidth = getComputedStyle(document.getElementById("target")).width;
13 document.getElementById("result").innerText = computedWidth === "100px" ? "PASS" : "FAIL"
14 </script>