2 <script src=
"../../../resources/js-test.js"></script>
4 body /deep/ .a { width:
100px; height:
100px; background-color: green; }
9 var root
= document
.getElementById('root');
10 var shadowContainer
= document
.createElement('div');
11 root
.appendChild(shadowContainer
);
13 var shadowRoot
= shadowContainer
.createShadowRoot();
14 var mid
= document
.createElement('div');
15 shadowRoot
.appendChild(mid
);
17 inner
= document
.createElement('div');
18 mid
.appendChild(inner
);
21 inner
.classList
.add('a');
22 shadowContainer
.remove();
24 root
.appendChild(shadowContainer
);
26 inner
.classList
.remove('a');
28 shouldBe('getComputedStyle(inner).backgroundColor', '"rgba(0, 0, 0, 0)"');