blob: 6b27a8be15065d6d8f94a6785d7184d8750d7fd1 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
/* relative positioning ensures underlying RenderLayer */
.container {
position: relative;
}
.span {
display: boxed-inline;
margin: 2px;
border: solid;
}
</style>
<script src="../resources/shadow-test-driver.js"></script>
<script src="resources/polyfill.js"></script>
<script>
var testFuncs = [];
testFuncs.push(function contentElementInVideoElement(callIfDone) {
document.getElementById('expect-container').innerHTML = "<div><video><div></div></video></div>";
var div = document.createElement('div');
div.appendChild(document.createElement('div'));
document.getElementById('actual-container').appendChild(div);
var sr = div.webkitCreateShadowRoot();
var video = document.createElement('video');
var content = document.createElement('content');
video.appendChild(content);
sr.appendChild(video);
document.body.offsetWidth; // force style recalc.
callIfDone();
});
</script>
</head>
<body onload="doTest(testFuncs)">
<div id="actual-container" class="container"></div>
<div id="expect-container" class="container"></div>
<pre id="console"></pre>
</body>
</html>