ladybird/Tests/LibWeb/Ref/input/scroll-iframe.html
Sam Atkins b7efb61fbe Tests/LibWeb: Restructure Ref and Screenshot test dirs to match others
Now each test type has the same directories:
- input
- expected
- data

Also, tests can be in subdirectories within ./input.
2024-11-05 14:02:07 +00:00

26 lines
788 B
HTML

<!DOCTYPE html>
<link rel="match" href="../expected/scroll-iframe-ref.html" />
<style>
iframe {
width: 200px;
height: 200px;
border: 1px solid black;
}
</style>
<body></body>
<script>
const iframe = document.createElement("iframe");
iframe.srcdoc = `
<style>
body { margin: 0 }
html { scrollbar-width: none; }
</style>
<div style="width: 200px; height: 200px; background-color: darkblue"></div>
<div style="width: 200px; height: 200px; background-color: blue"></div>
<div style="width: 200px; height: 200px; background-color: magenta"></div>
`;
iframe.onload = function () {
iframe.contentWindow.scroll(0, 200);
};
document.body.appendChild(iframe);
</script>