| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 | 2 |
| 3 <script src="../../../resources/js-test.js"></script> | 3 <script src="../../../resources/js-test.js"></script> |
| 4 | 4 |
| 5 <style> | 5 <style> |
| 6 .deep /deep/ .inside, | 6 .deep /deep/ .inside, |
| 7 .shallow .inside { | 7 .shallow .inside { |
| 8 padding: 0; | 8 padding: 0; |
| 9 } | 9 } |
| 10 </style> | 10 </style> |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 var childDiv = sandbox.appendChild(document.createElement("div")); | 22 var childDiv = sandbox.appendChild(document.createElement("div")); |
| 23 childDiv.className = "inside"; | 23 childDiv.className = "inside"; |
| 24 var shadowDiv = sandboxRoot.appendChild(document.createElement("div")); | 24 var shadowDiv = sandboxRoot.appendChild(document.createElement("div")); |
| 25 shadowDiv.className = "inside"; | 25 shadowDiv.className = "inside"; |
| 26 shadowDiv.createShadowRoot().innerHTML = "<div class=inside><content></conte
nt></div>"; | 26 shadowDiv.createShadowRoot().innerHTML = "<div class=inside><content></conte
nt></div>"; |
| 27 } | 27 } |
| 28 | 28 |
| 29 getComputedStyle(sandbox).color; | 29 getComputedStyle(sandbox).color; |
| 30 sandbox.className = "shallow"; | 30 sandbox.className = "shallow"; |
| 31 if (window.internals) | 31 if (window.internals) |
| 32 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "11"); | 32 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "10"); |
| 33 sandbox.className = ""; | 33 sandbox.className = ""; |
| 34 | 34 |
| 35 getComputedStyle(sandbox).color; | 35 getComputedStyle(sandbox).color; |
| 36 sandbox.className = "deep"; | 36 sandbox.className = "deep"; |
| 37 if (window.internals) | 37 if (window.internals) |
| 38 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "31"); | 38 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "30"); |
| 39 </script> | 39 </script> |
| OLD | NEW |