blob: 8ab15a1ac3eefab39852aaf2f852e54f14c47e71 [file] [log] [blame]
<!DOCTYPE html>
Distributed under both the W3C Test Suite License [1] and the W3C
3-clause BSD License [2]. To contribute to a W3C Test Suite, see the
policies and contribution forms [3].
<title>Shadow DOM Test: Basic shadow root</title>
<link rel="match" href="shadow-root-001-ref.html">
<link rel="author" title="Hayato Ito" href="">
<link rel="author" title="Yuta Kitamura" href="">
<link rel="help" href="">
<meta name="assert" content="When a shadow root is attached, the shadow tree is rendered.">
<script src="../testcommon.js"></script>
p { color: black; }
* { color: red; }
<p>You should see green text saying "PASS" below.</p>
<div id="host">FAIL</div>
var shadowRoot =;
shadowRoot.innerHTML =
'<style>#pass { color: green; }</style>\n' +
'<div id="pass">PASS</div>';