Repository navigation
fix(pwa): one persistent top-edge element so iPadOS never re-samples a different bar - #1026
Merged
Merged
Conversation
…a different bar Root cause, measured on iPadOS 27.0.1 with a parameterised probe served from the dev box (no releases): the status-bar strip is painted in the colour of the fixed/sticky element iOS finds at the top edge, and the FIRST time that element changes — a header unmounting on a layout switch, the reader chrome taking over, any other bar swapped in — it switches to blurring the page content into the strip and never recovers for the life of the document. Shrinking the same header to 12px kept the strip clean; replacing it with any other bar (fixed or sticky, 12–56px, scrolling or not) latched it. This is why sidebar navigation (header persists) was clean while About → admin and the reader (header swapped) faded, why #1022's backstop could not help (it only became the sampled element after the header had gone, itself a change), and why head-tag work (#1014, #1016) was beside the point. - Root layout: `#top-edge`, the first child of <body>: sticky, z-9999, 12px (WebKit ignores bars ≤ 10px), negative margin so it costs no layout, in the page colour (`--top-edge-color`, default background). It is always what iOS samples: present from first paint, above every header and overlay. Replaces the fixed backstop. - The reader marks its root `data-surface="reader"`; globals.css turns the bar black there (same element, colour change only — verified clean on-device). - Verified on the iPad in one document: header hidden with a fixed 56px bar inserted, bar colour → black → back, header hidden with a sticky 20px bar, three route changes through a headerless page, scrolling — all clean. Browser check: #top-edge is the sampled element at rest, scrolled, with headers hidden, during the colour change and under a dialog overlay. - /pwa-lab: variant Q, a parameterised experiment console (position, height, colour, z-index, header kept/hidden, scroll lock, duration) plus a colour-change trigger; the sticky-vs-fixed ladder on P; the logger shared between them. manifest.ts: dev-only PWA_LAB_START_URL so a LAN dev server's installed app opens on a lab page instead of the API-backed home. Delete the lab once confirmed.
This was referenced Oct 5, 2026
Merged
mbryantms
added a commit
that referenced
this pull request
Oct 5, 2026
…confirmed (#1028) The /pwa-lab experiments, the /pwa-test standalone pages and manifests, the Admin → Server "PWA lab" link and the dev-only manifest start_url override all served the investigation that ended in #1026 (one persistent #top-edge element). Confirmed on the iPad in v0.41.1; the regression test in tests/pwa/edge-effect.test.ts keeps the fix.
mbryantms
added a commit
that referenced
this pull request
Oct 5, 2026
The 12px #top-edge bar (#1026) sits above every header at z-9999 in the page colour. The topbar centres its controls in 56px, so the search field's top border and focus ring fall inside that band and were painted over — in a browser tab, and in the installed app wherever --safe-top is 0 (the 26.1+ probe pin, or no status-bar inset at all). - Render #top-edge only in display-mode: standalone; a browser tab has no status bar to sample. Display mode never changes within a document, so it is still one unchanging element for iPadOS. - In the installed app, floor --safe-top at 12px (CSS default and the value SafeAreaProbe pins, now TOP_EDGE_PX) so headers, sheets and the reader chrome all clear the bar through their existing padding.
filipkovacicbusiness-sudo
pushed a commit
to Eflitte-filip/smartclean-portal
that referenced
this pull request
Oct 20, 2026
iOS 26/27 (aplikacija na začetnem zaslonu) vzame barvo s pritrjenega elementa na vrhu strani; ko se ta element PRVIČ zamenja (zagonski zaslon → zgornja vrstica), vrh do zaprtja aplikacije zamegljuje. Zdaj je od prvega izrisa nad vsem en sam trak #sc-vrh (12 px, barva strani, nikoli zamenjan; le barva sledi temi) — po vzoru, preverjenem na napravi (github.com/mbryantms/folio/pull/1026). Stari temni pas odstranjen. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Root cause, measured on iPadOS 27.0.1 with a parameterised probe served
from the dev box (no releases): the status-bar strip is painted in the
colour of the fixed/sticky element iOS finds at the top edge, and the
FIRST time that element changes — a header unmounting on a layout
switch, the reader chrome taking over, any other bar swapped in — it
switches to blurring the page content into the strip and never recovers
for the life of the document. Shrinking the same header to 12px kept
the strip clean; replacing it with any other bar (fixed or sticky,
12–56px, scrolling or not) latched it. This is why sidebar navigation
(header persists) was clean while About → admin and the reader (header
swapped) faded, why #1022's backstop could not help (it only became the
sampled element after the header had gone, itself a change), and why
head-tag work (#1014, #1016) was beside the point.
#top-edge, the first child of : sticky, z-9999,12px (WebKit ignores bars ≤ 10px), negative margin so it costs no
layout, in the page colour (
--top-edge-color, default background).It is always what iOS samples: present from first paint, above every
header and overlay. Replaces the fixed backstop.
data-surface="reader"; globals.css turnsthe bar black there (same element, colour change only — verified
clean on-device).
bar inserted, bar colour → black → back, header hidden with a sticky
20px bar, three route changes through a headerless page, scrolling —
all clean. Browser check: #top-edge is the sampled element at rest,
scrolled, with headers hidden, during the colour change and under a
dialog overlay.
height, colour, z-index, header kept/hidden, scroll lock, duration)
plus a colour-change trigger; the sticky-vs-fixed ladder on P; the
logger shared between them. manifest.ts: dev-only
PWA_LAB_START_URL so a LAN dev server's installed app opens on a lab
page instead of the API-backed home. Delete the lab once confirmed.