The design language that makes your AI harness better at design.
JavaScript
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Cramped padding, dividers and scroll edges</title>
<!--
Browser-only reads. A lone 1px rule over a list item with no fill is a
divider, and the headline under it is measured to its glyphs
(theguardian.com's most-viewed list): 3px of content area, more to
the glyphs. The same item framed by rules above and below stays flush.
A scroller whose list runs on past its bottom edge cuts the line that
meets that edge; the same box with nothing more to show is flush there.
-->
<style>
body { margin: 0; padding: 32px; font-family: Georgia, serif; font-size: 16px; line-height: 1.6; color: #1a1a1a; background: #ffffff; }
main { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; width: 1000px; }
h2 { font-size: 18px; margin: 0 0 16px; }
ol.most { list-style: none; margin: 0 0 32px; padding: 0; width: 320px; }
ol.most li { border-top: 1px solid #dcdcdc; font-size: 20px; line-height: 23px; }
ol.most li.framed { border-bottom: 1px solid #dcdcdc; }
ol.most a { display: block; color: inherit; text-decoration: none; }
ol.most .pad { padding: 3px 0 18px 75px; }
ol.most h4 { margin: 0; font-size: 20px; line-height: 23px; font-weight: 500; }
.feed { border: 1px solid #c8c8c8; padding: 20px 12px 0 12px; width: 300px; margin: 0 0 32px; }
.feed .list { height: 80px; overflow-y: auto; }
.feed .list p { margin: 0; height: 20px; line-height: 20px; font-size: 16px; white-space: nowrap; }
</style>
</head>
<body>
<main>
<section>
<h2>Should flag</h2>
<ol class="most"><li id="flag-framed-item" class="framed"><a href="#"><div class="pad"><h4>Florida officer finds a man dead and takes his house</h4></div></a></li></ol>
<div id="flag-feed-ends" class="feed"><div class="list"><p>Customer Sessions</p><p>Payment Intents</p><p>Setup Intents</p><p>Payment Methods</p></div></div>
</section>
<section>
<h2>Should pass</h2>
<ol class="most"><li id="pass-divided-item"><a href="#"><div class="pad"><h4>Florida officer finds a man dead and takes his house</h4></div></a></li></ol>
<div id="pass-feed-runs-on" class="feed"><div class="list"><p>Customer Sessions</p><p>Payment Intents</p><p>Setup Intents</p><p>Payment Methods</p><p>Confirmation Tokens</p><p>Payouts</p><p>Refunds</p><p>Disputes</p></div></div>
</section>
</main>
</body>
</html>