OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <script src="../../resources/js-test.js"></script> | |
3 <style> | |
4 div { color: black; } | |
5 </style> | |
6 <div id="t"> | |
7 <div> | |
8 <div></div> | |
9 <div></div> | |
10 <div></div> | |
11 <div></div> | |
12 <div></div> | |
13 <div></div> | |
14 <div></div> | |
15 <div></div> | |
16 <div></div> | |
17 <div></div> | |
18 <div></div> | |
19 <div></div> | |
20 <div></div> | |
21 <div></div> | |
22 </div> | |
23 </div> | |
24 <script> | |
25 if (window.testRunner) | |
26 testRunner.dumpAsText(); | |
27 | |
28 description("Check that we don't do unnecessary style recalcs for inheritance.") ; | |
29 | |
30 if (window.internals) | |
31 internals.updateStyleAndReturnAffectedElementCount(); | |
32 | |
33 document.getElementById("t").style.color = "pink"; | |
34 | |
35 if (window.internals) | |
36 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "2"); | |
37 </script> | |
OLD | NEW |