summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/dom/shadow/reinsert-insertion-point.html
blob: f05fab24a9ac29339fd88b9f0ac0b7768c6e61fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>

<script src="../../js/resources/js-test-pre.js"></script>

<div id="inside">Should be visible</div>

<script>
var inside = document.getElementById('inside');
var insideRoot = inside.webkitCreateShadowRoot();

var content = insideRoot.appendChild(document.createElement('content'));

shouldBeTrue("inside.offsetHeight > 0");

content.remove();
insideRoot.appendChild(content);

shouldBeTrue("inside.offsetHeight > 0");
</script>