| 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 .b { color: red } | 4 .b { color: red } |
| 5 .a + div .b { color: green } | 5 .a + div .b { color: green } |
| 6 </style> | 6 </style> |
| 7 <input type="text"></input> | 7 <input type="text"></input> |
| 8 <div> | 8 <div> |
| 9 <span class="b">Should be green</span> | 9 <span class="b">Should be green</span> |
| 10 <span></span> | 10 <span></span> |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 input.offsetTop; | 22 input.offsetTop; |
| 23 | 23 |
| 24 // Schedule sibling invalidation set to invalidate span.b | 24 // Schedule sibling invalidation set to invalidate span.b |
| 25 input.className = "a"; | 25 input.className = "a"; |
| 26 | 26 |
| 27 // Trigger lazyReattachIfAttached() -> detach(). | 27 // Trigger lazyReattachIfAttached() -> detach(). |
| 28 document.querySelector("input").type = "button"; | 28 document.querySelector("input").type = "button"; |
| 29 | 29 |
| 30 // One for attaching the input, and one for the span.b recalc. | 30 // One for attaching the input, and one for the span.b recalc. |
| 31 if (window.internals) | 31 if (window.internals) |
| 32 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "2"); | 32 shouldBe("internals.updateStyleAndLayoutAndReturnAffectedElementCount()"
, "2"); |
| 33 | 33 |
| 34 shouldBeEqualToString("getComputedStyle(document.querySelector('.b')).color"
, "rgb(0, 128, 0)"); | 34 shouldBeEqualToString("getComputedStyle(document.querySelector('.b')).color"
, "rgb(0, 128, 0)"); |
| 35 </script> | 35 </script> |
| OLD | NEW |