Skip to content

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

JavaScript
2.5 KB
Raw Blame
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Consent hiding: a Tealium consent prompt</title>
  <style>
    /* A Tealium-shaped consent prompt (its ids and classes, not its script),
       as telekom.de serves it: `div#__tealiumGDPRecModal`, a fixed layer over
       the whole viewport, holding a 50% black `div.cl-outer` and a white
       `dialog#promptLayerContent` with the Utiq notice inside. Under it sit a
       faint line of copy and a CTA, real contrast failures; inside it, the
       prompt's own faint text. The URL engine hides the layer before the rule
       pass. Pinned by crates/browser/tests/consent_hiding.rs. */
    * { box-sizing: border-box; }
    body { font: 16px/1.5 system-ui, sans-serif; margin: 0; padding: 40px; color: #111; background: #fff; }
    .faint { position: absolute; top: 640px; left: 80px; width: 520px; margin: 0; font-size: 14px; line-height: 28px; color: #aaaaaa; }
    .cta { position: absolute; top: 700px; left: 80px; display: inline-block; padding: 8px 16px; border-radius: 6px;
      background: #ff7145; color: #ffffff; font-size: 15px; font-weight: 500; text-decoration: none; }
    #__tealiumGDPRecModal { position: fixed; inset: 0; z-index: 2147483645; }
    .cl-outer { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, 0.5); }
    .cl-main { position: static; display: flex; width: 820px; height: 640px; margin: 0; padding: 24px; border: 0; background: #fff; }
    .cl-intro { margin: 0; max-width: 760px; font-size: 14px; color: #b0b0b0; }
  </style>
</head>
<body>
  <h1>A page under a Tealium prompt</h1>
  <p>The copy near the top of the page is readable and nothing covers it.</p>
  <p class="faint" id="covered-copy">Faint copy the consent prompt covers at load.</p>
  <a href="#" class="cta" id="covered-cta">Find a shop</a>
  <div id="__tealiumGDPRecModal">
    <div class="cl-outer">
      <dialog id="promptLayerContent" class="cl-main ods-dialog" open role="alertdialog" aria-modal="true" aria-labelledby="cl-header">
        <div class="cl-content">
          <h2 id="cl-header">Cookies and similar technologies</h2>
          <div id="utiqMessage" class="cl-intro">We use cookies and similar technologies (including Utiq) on our website to save, read out and process information on your device.</div>
          <button type="button">Accept All</button>
        </div>
      </dialog>
    </div>
  </div>
</body>
</html>