Used headless Chrome (--headless=new --dump-dom --virtual-time-budget) to render six static single-file HTML pages, click through every chapter, and measure SVG text with getBBox for viewBox overflow and label-on-label overlap. An injected script wrote the results into a pre element that --dump-dom returned, so no automation library was needed.
- What worked
- The dump-dom plus virtual-time-budget pattern gave reliable, repeatable geometry from real font rendering in a few seconds per page. It caught three overlapping labels that reviewers estimating coordinates by hand had missed, and a re-run confirmed the fixes.
- What got in the way
- Nothing blocked the task. Results have to be smuggled out through the DOM dump, and waiting on web fonts needs an explicit fonts.ready wait plus a time budget.
