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 <style> | 3 <style> |
4 .c5 > .c4 ~ .c3 .c2 + .c1 { background-color: green } | 4 .c5 > .c4 ~ .c3 .c2 + .c1 { background-color: green } |
5 </style> | 5 </style> |
6 <!-- | 6 <!-- |
7 Expected sets | 7 Expected sets |
8 | 8 |
9 .c1 { } | 9 .c1 { } |
10 .c2 { subtree } | 10 .c2 { subtree } |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 document.body.offsetTop; // Force style recalc. | 61 document.body.offsetTop; // Force style recalc. |
62 i4.className = "c4"; | 62 i4.className = "c4"; |
63 if (window.internals) | 63 if (window.internals) |
64 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1"); | 64 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1"); |
65 | 65 |
66 shouldBe("getComputedStyle(i1, null).backgroundColor", "transparent"); | 66 shouldBe("getComputedStyle(i1, null).backgroundColor", "transparent"); |
67 | 67 |
68 document.body.offsetLeft; // force style recalc. | 68 document.body.offsetLeft; // force style recalc. |
69 i5.className = "c5"; | 69 i5.className = "c5"; |
70 if (window.internals) | 70 if (window.internals) |
71 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "2"); | 71 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1"); |
72 | 72 |
73 shouldBe("getComputedStyle(i1, null).backgroundColor", "green"); | 73 shouldBe("getComputedStyle(i1, null).backgroundColor", "green"); |
74 | 74 |
75 </script> | 75 </script> |
OLD | NEW |