2 <script src=
"../../resources/js-test.js"></script>
3 <p>This test checks that contenteditable is propagated to distributed nodes.
</p>
4 <div id=
"host" contenteditable
><span></span></div>
5 <pre id=
"console"></pre>
8 testRunner
.dumpAsText();
10 // An important part is that the span created below triggers a check for
11 // re-using inherited props from the cache for the distributed span.
13 var shadowRoot
= host
.createShadowRoot();
14 var span
= document
.createElement("span");
15 var content
= document
.createElement("content");
16 shadowRoot
.appendChild(span
);
17 shadowRoot
.appendChild(content
);
19 shouldBeEqualToString("getComputedStyle(shadowRoot.querySelector('span'), null).webkitUserModify", "read-only");
20 shouldBeEqualToString("getComputedStyle(shadowRoot.querySelector('content').getDistributedNodes()[0], null).webkitUserModify", "read-write");
22 successfullyParsed
= true;