Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /webvtt/rendering/cues-with-video/processing-model/embedded_style_media_queries_resized.html - WPT Dashboard Interop Dashboard
<!doctype html>
<html class="reftest-wait">
<title>Embedded Style: Media Queries Resize Frame</title>
<link rel="match" href="embedded_style_media_queries_resized-ref.html">
<script src="/common/reftest-wait.js"></script>
<style>iframe {width:100%; height:500px}</style>
<script>
onload = function() {
document.getElementById("form-iframe").style.height = "300px";
let iframeWindow = document.querySelector('iframe').contentWindow;
iframeWindow.requestAnimationFrame(() => {
iframeWindow.requestAnimationFrame(() => {
setTimeout(function() {
takeScreenshot();
}, 100);
});
});
};
</script>
<iframe id="form-iframe" src="support/embedded_style_media_queries_resized-iframe.html"></iframe>