Skip to content

Instantly share code, notes, and snippets.

@nullhook
Created October 1, 2026 01:43
Show Gist options
  • Select an option

  • Save nullhook/6183b04c8ca8da823e0424d2bd0aae9a to your computer and use it in GitHub Desktop.

Select an option

Save nullhook/6183b04c8ca8da823e0424d2bd0aae9a to your computer and use it in GitHub Desktop.
you can read frame N's layout now
<canvas id="tick" layoutsubtree style="position:fixed;width:1px;height:1px;opacity:0">
<div></div>
</canvas>
<script>
tick.onpaint = () => { /* runs every frame, after layout, before paint */ tick.requestPaint(); };
tick.requestPaint();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment