Thin strip above the card when the top bar is disabled

Hello!

I’ve been designing my own note type and noticed a minor UI bug in the AnkiMobile reviewer that only appears when the top bar is disabled.

There’s a thin strip between the status bar (the time and battery area) and the top of the card. Cards can’t draw on it, but AnkiMobile’s status bar background doesn’t cover it either, so it shows as a bright line in the background color.

The attached screenshots show the strip with the top bar disabled, and that it’s gone when the top bar is enabled. I also have the .akpg used for the screenshots to reproduce it but I can’t upload it here.

Extra info: AnkiMobile 25.09, iOS 27.0.1, iPhone 18 Pro

Here is the code for the template if anyone wants to test it out

Front:

<div class="front">{{Front}}</div>

Back:

<div id="bg"></div>
<div class="note">
  Stripes: <code>position: fixed; inset: 0</code><br />
  Red above the card: drawn by AnkiMobile. It takes its color from
  <code>&lt;body&gt;</code>, but the card can't draw over it.
</div>
<pre id="readout">measuring…</pre>
<div id="spacer">{{Back}}</div>

<script>
  (function () {
    var box = document.getElementById("readout");
    function px(css) {
      var el = document.createElement("div");
      el.style.cssText =
        "position:fixed;visibility:hidden;pointer-events:none;" + css;
      document.body.appendChild(el);
      var v = Math.round(el.getBoundingClientRect().height);
      el.remove();
      return v;
    }
    function update() {
      var vv = window.visualViewport;
      var s = document.scrollingElement;
      var meta = document.querySelector('meta[name="viewport"]');
      box.textContent = [
        "innerHeight " + innerHeight,
        "visualViewport " + (vv ? Math.round(vv.height) : "-"),
        "screen.height " + screen.height,
        "100vh " + px("height:100vh"),
        "safe-area top/bottom " +
          px("height:env(safe-area-inset-top,0px)") + "/" +
          px("height:env(safe-area-inset-bottom,0px)"),
        "scroll " + Math.round(s.scrollTop) + "/" +
          Math.round(s.scrollHeight - s.clientHeight),
        "viewport meta " + (meta ? meta.content : "(none)"),
      ].join("\n");
    }
    update();
    addEventListener("scroll", update, { passive: true });
    addEventListener("resize", update);
    setInterval(update, 1000);
  })();
</script>

Styling:

html,
body,
body.card {
  background: red !important;
  margin: 0 !important;
  padding: 0 !important;
}
.card {
  color: #fff;
  font: 16px/1.4 -apple-system, sans-serif;
  text-align: left;
}
#bg {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    #1565c0 0 40px,
    #ffd600 40px 80px
  );
}
.note {
  position: relative;
  margin: 0;
  padding: 8px 12px;
  background: rgb(0 0 0 / 0.6);
}
#readout {
  position: fixed;
  right: 4px;
  top: 35vh;
  margin: 0;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgb(0 0 0 / 0.75);
  color: #7f7;
  font: 10px/1.3 ui-monospace, monospace;
  white-space: pre-wrap;
  pointer-events: none;
}
#spacer {
  position: relative;
  height: 250vh;
  padding: 8px 12px;
}
.front {
  padding: 40vh 16px;
  text-align: center;
}