OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../../resources/js-test.js"></script> |
| 3 <link rel="alternate stylesheet" title="not-preferred" href="data:text/css,#t {c
olor: green}"> |
| 4 <div id="t"></div> |
| 5 <script> |
| 6 description("Check that alternate stylesheet load completion did not cause a syn
chronous style recalc."); |
| 7 |
| 8 window.onload = function(){ |
| 9 shouldNotBe("internals.updateStyleAndReturnAffectedElementCount()", "0"); |
| 10 shouldBe("getComputedStyle(document.getElementById('t'), null).color", "'rgb
(0, 0, 0)'"); |
| 11 }; |
| 12 </script> |
OLD | NEW |