| Index: LayoutTests/fast/css/recalc-inherit-001.html
|
| diff --git a/LayoutTests/fast/css/recalc-inherit-001.html b/LayoutTests/fast/css/recalc-inherit-001.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..acd8f4b9d724c0c923a085de1523b75e233c1714
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/css/recalc-inherit-001.html
|
| @@ -0,0 +1,37 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../resources/js-test.js"></script>
|
| +<style>
|
| + div { color: black; }
|
| +</style>
|
| +<div id="t">
|
| + <div>
|
| + <div></div>
|
| + <div></div>
|
| + <div></div>
|
| + <div></div>
|
| + <div></div>
|
| + <div></div>
|
| + <div></div>
|
| + <div></div>
|
| + <div></div>
|
| + <div></div>
|
| + <div></div>
|
| + <div></div>
|
| + <div></div>
|
| + <div></div>
|
| + </div>
|
| +</div>
|
| +<script>
|
| +if (window.testRunner)
|
| + testRunner.dumpAsText();
|
| +
|
| +description("Check that we don't do unnecessary style recalcs for inheritance.");
|
| +
|
| +if (window.internals)
|
| + internals.updateStyleAndReturnAffectedElementCount();
|
| +
|
| +document.getElementById("t").style.color = "pink";
|
| +
|
| +if (window.internals)
|
| + shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "2");
|
| +</script>
|
|
|