Derive OverlayCaptureMetrics for a capture.
Falls back to treating the capture canvas as the viewport when the on-screen canvas has no layout box (detached / display:none), which keeps a headless or offscreen capture rendering something sane instead of dividing by zero.
Derive OverlayCaptureMetrics for a capture.
Falls back to treating the capture canvas as the viewport when the on-screen canvas has no layout box (detached / display:none), which keeps a headless or offscreen capture rendering something sane instead of dividing by zero.