Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / css / stroke-opacity-change-no-layout.html
blobcd31109c2df11fccd85496f4e156705fce260f68
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <script>
4 if (window.testRunner)
5 testRunner.dumpAsText();
7 onload = function() {
8 document.body.offsetTop;
9 if (window.internals)
10 shouldBe("window.internals.needsLayoutCount()", "0", true);
12 document.getElementById('rect').style.strokeOpacity = '0.5';
13 if (window.internals) {
14 shouldBe("window.internals.updateStyleAndReturnAffectedElementCount()", "1", true);
15 shouldBe("window.internals.needsLayoutCount()", "0");
18 </script>
19 Change of stroke-opacity should cause style recalc only, no layout.
20 <svg>
21 <rect id="rect" x="10" y="10" width="100" height="100" stroke="green" stroke-width="10"/>
22 </svg>