blob: 2b180c120daa5eeef98ef3d5feec54ef7c94b3d6 [file] [log] [blame]
<!DOCTYPE html> <!-- webkit-test-runner [ useFlexibleViewport=true ] -->
<script src="../../../resources/js-test-pre.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
<body>
<iframe src="../../content/test.mp4" style="position: absolute; top: 0; left: 0; width: 200px; height: 100%;"></iframe>
<script type="text/javascript">
description("Testing the size of the media element in a video media document on iPad.");
window.jsTestIsAsync = true;
let media;
(function runTestIfReady() {
const iframe = document.querySelector("iframe");
media = iframe.contentDocument.querySelector("video");
if (!media) {
setTimeout(runTestIfReady);
return;
}
shouldBecomeEqualToString("getComputedStyle(media).width", "200px", () => {
debug("");
iframe.remove();
finishJSTest();
});
})();
</script>
<script src="../../../resources/js-test-post.js"></script>
</body>