Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<svg>
<foreignObject id="target">
<div style="position: sticky; top: 0;"></div>
</foreignObject>
</svg>
<script>
document.body.offsetTop;
document.getElementById('target').style.overflow = 'visible';
</script>