1
0
Fork 0
firefox/testing/web-platform/tests/css/css-view-transitions/snapshot-containing-block-static-iframe-ref.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

27 lines
531 B
HTML

<!DOCTYPE html>
<html>
<title>View transitions: use snapshot containing block for static position in iframe (ref)</title>
<link rel="help" href="https://drafts.csswg.org/css-view-transitions-1/#snapshot-containing-block-concept/">
<style>
#inner {
width: 400px;
height: 200px;
}
</style>
<iframe id="inner" srcdoc="
<style>
body {
height: 200vh;
background: limegreen;
overflow: hidden;
}
</style>
<body></body>
"></iframe>
<script>
onload = () => {
inner.contentWindow.scrollTo(0, 100);
};
</script>