Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / link-alternate-style-recalc.html
blob5d978a09b7f07f44275636fd10dad591a8b9c85e
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <link rel="alternate stylesheet" title="not-preferred" href="resources/green.css">
4 <div id="t"></div>
5 <script>
6 description("Check that alternate stylesheet load completion did not cause a synchronous style recalc.");
8 window.onload = function(){
9 shouldNotBe("internals.updateStyleAndReturnAffectedElementCount()", "0");
10 shouldBe("getComputedStyle(document.getElementById('t'), null).color", "'rgb(0, 0, 0)'");
12 </script>