Skip to content

The design language that makes your AI harness better at design.

JavaScript
2.3 KB
Raw Blame
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Fixture: image-backed text sampled at the pixel level by default</title>
<style>
  body { margin: 0; padding: 40px; background: #17150f; font-family: Arial, sans-serif; }
  /* A same-origin (data-URI) near-white image background. The analytic walk
     cannot know its pixels, so the default overlay pass must sample the image
     itself: white text on it fails, dark ink on it passes. */
  .photo-panel {
    width: 420px;
    padding: 24px;
    margin: 0 0 24px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100'><rect width='100' height='100' fill='%23f5f2ea'/></svg>") center / cover no-repeat;
  }
  .flag-white-on-light { color: #fdfdfd; font-size: 16px; line-height: 1.6; margin: 0; }
  .pass-ink-on-light { color: #262421; font-size: 16px; line-height: 1.6; margin: 0; }
  /* Fourteen gradient-backed decoys sit BEFORE the photo panels in DOM
     order. They are visual-contrast candidates (gradient background) but not
     image-backed; with the default 12-candidate cap they would starve the
     image-only pass to zero unless the mode filters inside the collector.
     Their ink is dark on a light gradient, so no analytic finding fires. */
  .decoy { display: inline-block; padding: 4px 8px; margin: 0 4px 6px 0; background: linear-gradient(180deg, #f2efe6, #e8e4d8); color: #24211c; font-size: 12px; }
</style>
</head>
<body>
  <div><span class="decoy-row"></span>
    <div class="decoy">Decoy 1</div>
    <div class="decoy">Decoy 2</div>
    <div class="decoy">Decoy 3</div>
    <div class="decoy">Decoy 4</div>
    <div class="decoy">Decoy 5</div>
    <div class="decoy">Decoy 6</div>
    <div class="decoy">Decoy 7</div>
    <div class="decoy">Decoy 8</div>
    <div class="decoy">Decoy 9</div>
    <div class="decoy">Decoy 10</div>
    <div class="decoy">Decoy 11</div>
    <div class="decoy">Decoy 12</div>
    <div class="decoy">Decoy 13</div>
    <div class="decoy">Decoy 14</div>
  </div>
  <div class="photo-panel">
    <p class="flag-white-on-light">White text on a near-white image background is unreadable, and only pixel sampling can prove it.</p>
  </div>
  <div class="photo-panel">
    <p class="pass-ink-on-light">Dark ink on the same image background reads fine and must not flag.</p>
  </div>
</body>
</html>