OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script> | 4 <script> |
5 if (window.testRunner) | 5 if (window.testRunner) |
6 testRunner.waitUntilDone(); | 6 testRunner.waitUntilDone(); |
7 | 7 |
8 function runTest() { | 8 function runTest() { |
9 var shadow = host.createShadowRoot(); | 9 var shadow = host.createShadowRoot(); |
| 10 shadow.applyAuthorStyles = false; |
10 shadow.innerHTML = "<div id='hostInShadow'><div class='parent'><p ishidden='
false'>NotHidden</p><p ishidden='true' id='target'>Hidden</p></div></div>"; | 11 shadow.innerHTML = "<div id='hostInShadow'><div class='parent'><p ishidden='
false'>NotHidden</p><p ishidden='true' id='target'>Hidden</p></div></div>"; |
11 | 12 |
12 var innerShadow = shadow.getElementById('hostInShadow').createShadowRoot(); | 13 var innerShadow = shadow.getElementById('hostInShadow').createShadowRoot(); |
| 14 innerShadow.applyAuthorStyles = false; |
13 innerShadow.innerHTML = "<style>content::content .parent [ishidden=true] { d
isplay: none; }</style><content>"; | 15 innerShadow.innerHTML = "<style>content::content .parent [ishidden=true] { d
isplay: none; }</style><content>"; |
14 | 16 |
15 window.setTimeout(function() { | 17 window.setTimeout(function() { |
16 if (window.testRunner) | 18 if (window.testRunner) |
17 testRunner.notifyDone(); | 19 testRunner.notifyDone(); |
18 }, 0); | 20 }, 0); |
19 } | 21 } |
20 </script> | 22 </script> |
21 </head> | 23 </head> |
22 <body onload="runTest()"> | 24 <body onload="runTest()"> |
23 <div id="host"> | 25 <div id="host"> |
24 </div> | 26 </div> |
25 </body> | 27 </body> |
26 </html> | 28 </html> |
OLD | NEW |