| Index: LayoutTests/fast/css/link-alternate-style-recalc.html
|
| diff --git a/LayoutTests/fast/css/link-alternate-style-recalc.html b/LayoutTests/fast/css/link-alternate-style-recalc.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b40d8cd08b721efcbe0d0a0bb70a0abc6b0a89a1
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/css/link-alternate-style-recalc.html
|
| @@ -0,0 +1,12 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../resources/js-test.js"></script>
|
| +<link rel="alternate stylesheet" title="not-preferred" href="data:text/css,#t {color: green}">
|
| +<div id="t"></div>
|
| +<script>
|
| +description("Check that alternate stylesheet load completion did not cause a synchronous style recalc.");
|
| +
|
| +window.onload = function(){
|
| + shouldNotBe("internals.updateStyleAndReturnAffectedElementCount()", "0");
|
| + shouldBe("getComputedStyle(document.getElementById('t'), null).color", "'rgb(0, 0, 0)'");
|
| +};
|
| +</script>
|
|
|