The design language that makes your AI harness better at design.
JavaScript
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>body-text-viewport-edge, truncated lines and running tracks</title>
<!--
Where a paragraph's text ends is not always where its Range rect ends.
Should pass: a line its own box truncates with an ellipsis ends at that
box. The rect of its text runs on past the viewport (keydris.com,
leilonozap.vercel.app), and nothing a visitor sees is there.
Should pass: a card on a track that a running, endlessly repeating
animation moves stands wherever the capture caught it (paseo.sh). The
animation here runs, but over a duration so long that it holds still for the capture.
Should flag: the same line with no clip runs past the page, and the same
card on a track a script parked with a transform shows a 7px gutter.
The static engine measures no text; it reports none of these.
-->
<style>
* { box-sizing: border-box; }
body { font-family: system-ui, sans-serif; font-size: 16px; line-height: 24px; color: #1a1a1a; background: #ffffff; margin: 0; }
.note { margin: 24px 0 24px 500px; width: 700px; }
.line { margin: 0; width: 700px; white-space: nowrap; }
.pass-truncated-line { overflow: hidden; text-overflow: ellipsis; }
.window { overflow: hidden; width: 1280px; margin: 24px 0; }
.track { display: flex; width: 2100px; }
.parked { transform: translateX(-96px); }
.running { animation: slide 100000s linear infinite; }
@keyframes slide { from { transform: translateX(-96px); } to { transform: translateX(-1496px); } }
.quote { flex: 0 0 700px; padding: 16px 31px 16px 16px; }
/* Right-aligned lines end at the box's edge whatever the host's face, so the gutter the card shows is the box's. */
.quote p { margin: 0; text-align: right; }
</style>
</head>
<body>
<div class="note">
<p class="line pass-truncated-line">This single line is set not to wrap, and its box cuts it with an ellipsis well before the edge of the page, however far the text itself would run.</p>
</div>
<div class="note">
<p class="line flag-unclipped-line">This single line is set not to wrap, and nothing cuts it, so it runs out of its box and on past the right edge of the page.</p>
</div>
<div class="window">
<div class="track running">
<div class="quote"><p>The first card of the moving track sits mostly off the left side of its window at the first frame.</p></div>
<div class="quote"><p class="pass-on-running-track">The second card ends seven pixels from the edge of the window at the frame the capture caught, and a moment later it would not, so the distance is no gutter at all.</p></div>
<div class="quote"><p>The third card waits past the right side of the window.</p></div>
</div>
</div>
<div class="window">
<div class="track parked">
<div class="quote"><p>The first card of the parked track sits mostly off the left side of its window.</p></div>
<div class="quote"><p class="flag-on-parked-track">The second card ends seven pixels from the edge of the window and stays there, because nothing moves this track: a script parked it with a transform, and that is the gutter a visitor gets.</p></div>
<div class="quote"><p>The third card waits past the right side of the window.</p></div>
</div>
</div>
</body>
</html>