Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / dom / shadow / no-style-sharing-with-uncommon-attribute-and-pseudo-distributed.html
1 <!doctype html>
2 <html>
3 <head>
4 <script>
5 if (window.testRunner)
6     testRunner.waitUntilDone();
7
8 function runTest() {
9     var shadow = host.createShadowRoot();
10     shadow.applyAuthorStyles = false;
11     shadow.innerHTML = "<div id='hostInShadow'><div class='parent'><p ishidden='false'>NotHidden</p><p ishidden='true' id='target'>Hidden</p></div></div>";
12
13     var innerShadow = shadow.getElementById('hostInShadow').createShadowRoot();
14     innerShadow.applyAuthorStyles = false;
15     innerShadow.innerHTML = "<style>content::-webkit-distributed(.parent [ishidden=true]) { display: none; }</style><content>";
16
17     window.setTimeout(function() {
18         if (window.testRunner)
19             testRunner.notifyDone();
20     }, 0);
21 }
22 </script>
23 </head>
24 <body onload="runTest()">
25 <div id="host">
26 </div>
27 </body>
28 </html>