Files
ladybird/Tests/LibWeb/Ref/scrollable-contains-iframe.html
Aliaksandr Kalenik 9def582fba LibWeb: Apply enclosing scroll frame offset to iframe's position
Fixes iframe painting when it's nested into a scrollable box.
2024-08-07 20:16:02 +02:00

28 lines
594 B
HTML

<!DOCTYPE html>
<link rel="match" href="reference/scrollable-contains-iframe-ref.html" />
<style>
* {
scrollbar-width: none;
}
#scrollable {
width: 80%;
height: 300px;
border: 1px solid #000;
overflow: scroll;
}
iframe {
width: 300px;
height: 300px;
}
</style>
<div id="scrollable">
<div style="height: 200px"></div>
<iframe srcdoc="iframe nested into scrollable"></iframe>
</div>
<script>
const scrollContainer = document.getElementById("scrollable");
scrollContainer.scrollTop = 200;
</script>