blob: 59d6c1508b43b9d987fc7e10c3f4aad29c933709 [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 blob = new Blob([html], {type: 'text/html; charset=UTF-8'});
var iframe = document.querySelector("iframe");
iframe.onload = () => {
if (window.testRunner)
testRunner.notifyDone();
};
iframe.src = URL.createObjectURL(blob);
</script>
</body>
</html>