In the following page:
<head>
<style>
div {
height: 10000px;
border: 1px solid black;
}
</style>
</head>
<body>
<input id=input />
<div></div>
<script type="text/javascript">
document.addEventListener("DOMContentLoaded", () => {
input.scrollIntoView({ block: "end", inline: "nearest" });
});
</script>
</body>
We compute a vertical scroll offset that has a highly negative number, resulting in the following view:
This view "makes sense" in that we align the element to the end of the viewport, but the scroll offset likely needs to be clamped to the viewport bounds?
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too