blob: 3bf6e6e56bde524e6ed959125dc50a86c6df666e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<!doctype html>
<html>
<head>
<script>
if (window.testRunner)
testRunner.waitUntilDone();
function runTest() {
var shadow = host.createShadowRoot();
shadow.innerHTML = "<style> [ishidden=true] { display: none; } </style><p ishidden='false'>NotHidden</p><p ishidden='true' id='target'>Hidden</p>";
var target = shadow.getElementById("target");
window.setTimeout(function() {
if (window.testRunner)
testRunner.notifyDone();
}, 0);
};
</script>
</head>
<body onload="runTest()">
<div id="host"></div>
</body>
</html>
|