| 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 <div id="host1"> |   3 <div id="host1"> | 
|   4     <div id="r1"> |   4     <div id="r1"> | 
|   5         <div></div> |   5         <div></div> | 
|   6         <div></div> |   6         <div></div> | 
|   7     </div> |   7     </div> | 
|   8     <div></div> |   8     <div></div> | 
|   9     <div></div> |   9     <div></div> | 
|  10 </div> |  10 </div> | 
| (...skipping 30 matching lines...) Expand all  Loading... | 
|  41  |  41  | 
|  42 shouldBe("getComputedStyle(r1, null).backgroundColor", "green"); |  42 shouldBe("getComputedStyle(r1, null).backgroundColor", "green"); | 
|  43  |  43  | 
|  44 shouldBe("getComputedStyle(r2, null).backgroundColor", "transparent"); |  44 shouldBe("getComputedStyle(r2, null).backgroundColor", "transparent"); | 
|  45  |  45  | 
|  46 document.body.offsetTop; // Force style recalc. |  46 document.body.offsetTop; // Force style recalc. | 
|  47 var i2 = host2.shadowRoot.getElementById("i2"); |  47 var i2 = host2.shadowRoot.getElementById("i2"); | 
|  48 i2.className = "c2"; |  48 i2.className = "c2"; | 
|  49  |  49  | 
|  50 if (window.internals) |  50 if (window.internals) | 
|  51     shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "4"); |  51     shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "3"); | 
|  52  |  52  | 
|  53 shouldBe("getComputedStyle(r2, null).backgroundColor", "green"); |  53 shouldBe("getComputedStyle(r2, null).backgroundColor", "green"); | 
|  54  |  54  | 
|  55 shouldBe("getComputedStyle(r3, null).backgroundColor", "transparent"); |  55 shouldBe("getComputedStyle(r3, null).backgroundColor", "transparent"); | 
|  56  |  56  | 
|  57 document.body.offsetTop; // Force style recalc. |  57 document.body.offsetTop; // Force style recalc. | 
|  58 var i3 = host3.shadowRoot.getElementById("i3"); |  58 var i3 = host3.shadowRoot.getElementById("i3"); | 
|  59 i3.className = "c3"; |  59 i3.className = "c3"; | 
|  60  |  60  | 
|  61 if (window.internals) |  61 if (window.internals) | 
|  62     shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1"); |  62     shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1"); | 
|  63  |  63  | 
|  64 shouldBe("getComputedStyle(r3, null).backgroundColor", "green"); |  64 shouldBe("getComputedStyle(r3, null).backgroundColor", "green"); | 
|  65  |  65  | 
|  66 </script> |  66 </script> | 
| OLD | NEW |