Automatic update from web-platform-tests New attempt to land #55075 That PR didn't land because of some weird check failures. -- wpt-commits: 0aa9fbfcdab453380068ddcf07124f7f9a806903 wpt-pr: 55119
24 lines
378 B
HTML
24 lines
378 B
HTML
<!DOCTYPE html>
|
|
<meta charset="utf-8">
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
padding-top: 1000px;
|
|
}
|
|
#target {
|
|
height: 100px;
|
|
width: 100px;
|
|
background: green;
|
|
}
|
|
</style>
|
|
<div id="target"></div>
|
|
<script>
|
|
target.scrollIntoView({block: "center"});
|
|
|
|
addEventListener("message", event => {
|
|
if (event.data === "scrollY") {
|
|
event.source.postMessage(scrollY, "*");
|
|
}
|
|
});
|
|
</script>
|