3 <script src=
"../../../resources/js-test.js"></script>
12 <div id=
"sandbox"></div>
15 description("Invalidation sets should not apply across shadow roots if tree boundary crossing rules are not used.");
17 var sandbox
= document
.getElementById("sandbox");
18 var sandboxRoot
= sandbox
.createShadowRoot();
19 sandboxRoot
.innerHTML
= "<content></content>";
21 for (var j
= 0; j
< 10; ++j
) {
22 var childDiv
= sandbox
.appendChild(document
.createElement("div"));
23 childDiv
.className
= "inside";
24 var shadowDiv
= sandboxRoot
.appendChild(document
.createElement("div"));
25 shadowDiv
.className
= "inside";
26 shadowDiv
.createShadowRoot().innerHTML
= "<div class=inside><content></content></div>";
29 getComputedStyle(sandbox
).color
;
30 sandbox
.className
= "shallow";
32 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "10");
33 sandbox
.className
= "";
35 getComputedStyle(sandbox
).color
;
36 sandbox
.className
= "deep";
38 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "30");