Layout Doctor
Numerically detects layout breakages in HTML by rendering content and measuring visual discrepancies directly.
AI-generated HTML and slides often suffer from subtle yet critical layout flaws, such as overlapping text or content overflow, which traditional visual testing tools—reliant on baseline comparisons—fail to catch for newly generated content. This tool bypasses image-based detection, instead performing precise, numerical measurements of DOM coordinates and actual rendered text rectangles. It provides specific, actionable reports on visual breakages like text overlap, content clipping, and placeholder errors, ensuring that even first-time renders are visually sound without the need for a previous reference.
主要功能
01Blocks external network requests by default for secure and stable testing.
020 GitHub stars
03Requires no baseline images, analyzing a single rendered HTML page for issues.
04Numerically detects layout breakages by directly measuring DOM coordinates and rendered text rectangles.
05Identifies specific issues including text overlap, content clipping, viewport overflow, and placeholder text (e.g., 'undefined', 'NaN').
06Allows specifying a custom viewport for rendering and analysis to simulate various screen sizes.
使用案例
01Validating the visual integrity of AI-generated HTML and web content.
02Performing layout quality checks on newly created web pages or components without existing baselines.
03Identifying precise pixel-level layout issues like text overlaps and content overflows in rendered HTML.