OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="../../resources/js-test.js"></script> | 2 <script src="../../resources/js-test.js"></script> |
3 <script> | 3 <script> |
4 if (window.testRunner) | 4 if (window.testRunner) |
5 testRunner.dumpAsText(); | 5 testRunner.dumpAsText(); |
6 | 6 |
7 onload = function() { | 7 onload = function() { |
8 document.body.offsetTop; | 8 document.body.offsetTop; |
9 if (window.internals) | 9 if (window.internals) |
10 shouldBe("window.internals.needsLayoutCount()", "0", true); | 10 shouldBe("window.internals.needsLayoutCount()", "0", true); |
11 | 11 |
12 document.getElementById('rect').style.strokeOpacity = '0.5'; | 12 document.getElementById('rect').style.strokeOpacity = '0.5'; |
13 if (window.internals) { | 13 if (window.internals) { |
14 shouldBe("window.internals.updateStyleAndReturnAffectedElementCount()", "1",
true); | 14 shouldBe("window.internals.updateStyleAndLayoutAndReturnAffectedElementCount
()", "1", true); |
15 shouldBe("window.internals.needsLayoutCount()", "0"); | 15 shouldBe("window.internals.needsLayoutCount()", "0"); |
16 } | 16 } |
17 }; | 17 }; |
18 </script> | 18 </script> |
19 Change of stroke-opacity should cause style recalc only, no layout. | 19 Change of stroke-opacity should cause style recalc only, no layout. |
20 <svg> | 20 <svg> |
21 <rect id="rect" x="10" y="10" width="100" height="100" stroke="green" stroke-w
idth="10"/> | 21 <rect id="rect" x="10" y="10" width="100" height="100" stroke="green" stroke-w
idth="10"/> |
22 </svg> | 22 </svg> |
OLD | NEW |