blob: f8668708b2d1d9ae07ff7ec3e8897c9ee44aa307 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<p>This frame should have a blue background.</p>
<iframe></iframe>
<script>
if (window.testRunner)
testRunner.waitUntilDone();
var html = `
<style>
body {
background: blue;
}
</style>
`;
var iframe = document.querySelector("iframe");
iframe.onload = () => {
if (window.testRunner)
testRunner.notifyDone();
};
iframe.srcdoc = html;
</script>
</body>
</html>