A shadow element in ShadowDOM of a button element does not work.
[WebKit-https.git] / LayoutTests / fast / dom / shadow / shadowdom-for-button.html
1 <!DOCTYPE html>
2
3 <html>
4 <body>
5 <script src="resources/polyfill.js"></script>
6
7 <p>When a button element has a shadow dom having a shadow element, it should get the children of the button element.</p>
8
9 <button id="host1">Kotori</button>
10 <button id="host2">Kotori</button>
11
12 <script>
13 var shadowRoot1 = new WebKitShadowRoot(host1);
14 shadowRoot1.innerHTML = "<shadow></shadow> Otonashi";
15
16 var shadowRoot2 = new WebKitShadowRoot(host2);
17 shadowRoot2.innerHTML = "foo <shadow></shadow> bar";
18 var shadowRoot3 = new WebKitShadowRoot(host2);
19 shadowRoot3.innerHTML = "FOO <shadow></shadow> BAR";
20 </script>
21
22 </body>
23 </html>