Safe areas: research how iOS 27 Safari tints the status bar and toolbar, then a lab page #476

Closed
opened 2026-10-16 06:50:48 +00:00 by kayg · 5 comments
Owner

kayg (2026-10-16), on a real iPhone (iOS 27, Safari tab, light), with chrome.html: still a flat grey band behind Safari's bottom toolbar and a lighter strip under the status bar. The simulator showed the same page with no bottom band, so the simulator does not match the device for this.

kayg: "you really gotta research bottom and top safe areas".

Plan:

  1. Research with cited sources how iOS 26/27 Safari (tab with the floating toolbar, and Home Screen web apps) picks the colour/material for the status-bar area and the toolbar area: theme-color, the root/body background, fixed or sticky elements at the edges, backdrop-filter, viewport-fit, and the dvh/svh/lvh units.
  2. Build a safe-area lab page on preview with numbered variants that kayg can flip through on the phone in two minutes.
  3. Apply the winning rule to the app and all mockups, with an e2e guard.
kayg (2026-10-16), on a real iPhone (iOS 27, Safari tab, light), with chrome.html: still a flat grey band behind Safari's bottom toolbar and a lighter strip under the status bar. The simulator showed the same page with no bottom band, so the simulator does not match the device for this. kayg: "you really gotta research bottom and top safe areas". Plan: 1. Research with cited sources how iOS 26/27 Safari (tab with the floating toolbar, and Home Screen web apps) picks the colour/material for the status-bar area and the toolbar area: theme-color, the root/body background, fixed or sticky elements at the edges, backdrop-filter, viewport-fit, and the dvh/svh/lvh units. 2. Build a safe-area lab page on preview with numbered variants that kayg can flip through on the phone in two minutes. 3. Apply the winning rule to the app and all mockups, with an e2e guard.
Author
Owner

Research: what decides the colour behind the status bar and the floating toolbar (iOS 26/27 Safari)

Written before any code change. Every claim has a link. "Unconfirmed" is said where it is. Short version first.

Short version

  1. The grey band is our own <body> colour. In your screenshot the band is a flat #d0d5d9 (measured), right below the blue sky (#a7c7f0). That is the root colour our app sets (background-color: var(--edge-shown) on body). Safari paints the bar's area from the page, and when it finds nothing to sample it falls back to the page background colour. So we are in the "nothing qualifies" branch.
  2. Why nothing qualifies (the likely cause, not yet proven on your phone): Safari only reads colour from position: fixed / sticky elements at the edge. Our fixed backdrop is a viewport-sized box with a transparent background-color (the sky is painted by children), and our bottom search bar floats 18 pt above the edge. A fixed viewport-sized layer is also treated as a "dimming layer" or "viewport-sized" candidate that is blended over the page background, not read as pixels. And our body is overflow: hidden, so the document never scrolls and Safari never composites page content under the bar either (the other way the bar can show the page).
  3. The lighter strip at the top is probably a different mechanism: a WebKit change from July 2026 makes iOS 27 draw UIColor.systemBackgroundColor (near-white in light mode) in the top inset at scroll origin when no fixed element supplies a top colour. Unconfirmed that it is in the build on your phone.
  4. The simulator can differ. Joe Bell (the best-documented tester I found) records a case that looked seamless in the simulator and was worse on an iPhone 17 / iOS 27.0.1. The lab prints the numbers so your report tells us what the phone does.

1. How Safari 26/27 picks the colour behind the status bar and the bottom toolbar

theme-color is ignored in Safari 26+. The safari-color-tinting README: Safari 26 "still parses the meta tag but no longer uses this color". Same in 1ar.io and jahir.dev. Joe Bell's apple-web-app notes list "theme-color → ignored" in simulator runs on 26.5 and 27.0. (Keep it for Chrome/Android.) A Nasedkin write-up advises "do not assume it forces Safari 26-27 toolbar tinting" (nasedk.in). Not tested by anyone on a device on iOS 27 that I could find; lab variants 6 and 7 test it.

The rule comes from WebKit's source, LocalFrameView::fixedContainerEdges (LocalFrameView.cpp, main; I read main, which may be newer than iOS 27.0). What it does, per edge:

  • Hit-tests one point: the middle of the edge, 4 px inside it (sampleRectMargin = 4). Only position: fixed or sticky elements count (NotFixedOrSticky is skipped). An absolute child of a fixed element is not a candidate.
  • A candidate must span at least 90% of the viewport on that side (minimumRatio = 0.9). Elements with a border box of 10 px or less in either direction give no colour from their own background (thinBorderWidth = 10; a smaller one is sampled from a 2 px strip of real pixels). Hidden or nearly transparent elements are skipped.
  • background-color is read, not background-image. If the element's colour is not visible, WebKit asks PageColorSampler::predominantColor to sample the rendered pixels at the edge instead. Colour with alpha under 0.75 is blended over the page background colour (minimumOpacityThresholdToClampToSolidColor = 0.75).
  • backdrop-filter: a fixed element with backdrop-filter is reported as PredominantColorType::Multiple (foundBackdropFilter), not a solid colour. So a blurred bottom bar does not give a clean tint.
  • A viewport-sized fixed element with a background, no children, and a transparent or translucent colour is classed as a dimming layer and blended over the page background (isProbablyDimmingContainer, IsDimmingLayer). A viewport-sized fixed element also "prefers the existing colour" when one is already set (preferExistingColor).
  • If nothing qualifies, the colour falls back to the page's extended background colour (pageExtendedBackgroundColor).

A WebKit engineer says the same in words: the solid extension happens when a fixed or sticky element sits at an edge next to an obscured inset, and a non-fixed header does not do it (bug 301756, comment 2, Wenson Hsieh). The thread never states that the html/body background is the source; that is the reporter's reading.

html / body background. The fallback chain, from testing: <body>'s background-color, else <html>'s, else white (light) or black (dark) (safari-color-tinting; Joe Bell, item 6). A root background-image is "not reliable as toolbar tint input" (1ar.io); at scroll 0 Safari used the CSS background-color, not a fixed background-image layer (Huxpro/hux.pro #92, emulation only, closed).

Gradients and images at the edge. Joe Bell: "A full-screen fixed gradient turns both bars solid": a position: fixed; inset: 0 layer painted with background-image has a transparent background-color, is hit, and is blended over the page background, so the bars become the page colour and the gradient never reaches them. The fix there is full-width fixed edge strips with an opaque background-color above the gradient. Simulator only for that exact claim (notes from 2026-10-15), though the fixed/absolute split, widths and depths were also checked on an iPhone 17 Pro, iOS 27.0 (same page).

Thresholds from testing (disagree slightly with the source). Community: within 4 px of the top / 3 px of the bottom, at least 80% wide, at least 3 px high (andesco, jahir.dev). Joe Bell says those do not match the source or his runs: 90% used, 80% not; 6 px deep used, 4 px ignored; a narrow pill at the centre of an edge takes the bar over (device-checked on an iPhone 17 Pro, iOS 27.0). I follow the source and Bell. The lab strips are full width and 28 px + inset deep, so both readings are met.

iOS 27 top edge (the "lighter strip" candidate). WebKit commit 8b5cfad, "[iOS] Don't extend page colors under sidebar or top inset" (bug 317336, landed 2026-07-29): "starting in iOS 27, page colors or content should not appear in the leading or trailing obscured inset areas ... when the page is at its scroll origin." For the top, "if there's no visible sampled top color extension and the top inset is greater than zero, a non-interactive top system background extension is created", coloured UIColor.systemBackgroundColor; "if a sampled extension is visible, the top system extension fades out instead." Later, on 2026-10-10, PR #76538 (bug 327043) was merged: "Remove the top system background color extensions for iOS". Safari 27.0 shipped on September 14 (nasedk.in). Unconfirmed: whether 8b5cfad is in the iOS 27 build on your phone, and whether the strip you see is that extension. It would explain a near-white band at scroll 0 with a coloured sky below it. If it is that, a qualifying fixed top strip should switch it off (variants 10, 11).

2. "Content under the toolbar": when it shows through, when Safari paints its own bar

  • With no qualifying fixed edge element, Safari paints no tint: page content scrolls visibly under the bars. The page background shows only where there is no document under the bar: above the page at scroll 0, below it at the end, and in overscroll. A short page that never scrolls under a bar keeps that bar at the page background colour (Joe Bell, item 6; simulator 26.5 only).
  • That matches our page: the root does not scroll (body { overflow: hidden }, inner scroller). Two sources warn about it: overflow: hidden on body starved Safari's chrome compositor (Huxpro #92), and at scroll 0 Safari "often shows the sampled or fallback root background-color, not visible media"; with non-zero scroll it can composite real pixels behind the top area (1ar.io). Their fix is a document that is always taller than the viewport (variant 8). Both are blog-level evidence, not Apple statements.
  • viewport-fit=cover: disputed. andesco and 1ar.io say the bottom tint needs it (andesco, 1ar.io); jahir.dev says cover plus an explicit html colour did not fix their case (jahir.dev); Joe Bell says it makes no difference to either bar. In a Safari tab WebKit itself says it will not give top and bottom insets for cover in portrait: bug 306465, Tim Horton, 2026-08-19: "for web compatibility's sake, we can't provide top and bottom insets like you're hoping for here". The simulator agrees: env(safe-area-inset-top/bottom) is 0 in a Safari tab (lab output). So in a tab, env insets can never size a bar strip; use fixed minimums (lab strips use max(28px, inset) style sizes).
  • A fixed element at the bottom with a solid background: this is exactly what the source samples (a full-width, opaque, more than 10 px deep fixed element). jahir.dev's working recipe is an empty fixed div at bottom: -8px, min-height: 12px, width: 100%, with a background-color (jahir.dev). Pitfalls recorded by Bell: a narrow fixed pill at an edge's centre takes the bar over; an empty full-screen fixed layer above a dim hides it; a strip faded in by opacity or translated in "sticks" once sampled (keep strips in place and change their colour); <html> and <body> in different colours leave a 1 px hairline (same page).
  • Bottom tint disabled by the user: Settings > Apps > Safari > Tabs > Allow Website Tinting (andesco). Worth checking it is on on your phone.

3. Home Screen apps (standalone)

  • apple-mobile-web-app-status-bar-style: default is an opaque system/white bar and the page does not draw under it; black is opaque black; black-translucent is transparent and the page draws under it, with a real env(safe-area-inset-top). It only applies when apple-mobile-web-app-capable is yes and the app was added to the Home Screen (Joe Bell; his device checks were iOS 27.0, "No iOS 26 device was checked"). In his table the top inset is 0px for default and black and a real inset for black-translucent. Manifest theme_color is not applied to Home Screen apps as of 26.1 (same page). Nothing I found documents a change to these three values for iOS 26/27 beyond the bug below.
  • WebKit 301994, now "Reopened" (last change 2026-10-15): fixed in 26.2, back on 26.5.2 and the iOS 27 beta. Report of 2026-07-20: screen.height 874; innerHeight, 100dvh, clientHeight and visualViewport.height all 812 (offsetTop 0): "a 62px system-drawn gap" above the web layer; tabs are fine; "the bottom bar color is cached from the page background and updates only after relaunch" (one commenter's claim, unconfirmed). Another commenter argues vh/lvh match the full screen while svh/dvh match the area above the bar. No engineer has explained it (rdar://184081721). Related: 301108 (viewport-fit=cover does not fill the screen).
  • Our own earlier notes in #396 and #445 collect more reports (clchrf/money, tpdbf5509/busssss, ander-gym, collie). They disagree about which unit is short, so no single unit can be trusted in standalone: measure.

4. Units and values (what the evidence supports)

Mode Use Evidence
Safari tab Backdrop as position: fixed; inset: 0 (no unit needed). 100svh for the shell; 100lvh only for something that must reach under a collapsed toolbar. env(safe-area-inset-*) is 0 in a tab. tab numbers: 402x874 screen, innerHeight 714, lvh 754 (lab, simulator); bug 306465; Safari 26.1 fixed a 100dvh bottom gap (Joe Bell notes)
Home Screen Measure screen.height, innerHeight and a fixed; top: 0; bottom: 0 box at runtime and size the backdrop to the largest; real env() insets only with black-translucent. 301994
html { background } Set background-color on body (it wins over html) and keep html the same colour. Not a gradient. andesco; hairline note in Bell

viewport-fit=cover in Safari tabs: neutral to harmful per the sources above; the lab compares 2 and 3.

5. Recipes people report working

  • Edge strips over a fixed background (Joe Bell, recipe E): full-width fixed strips at both edges, opaque background-color, more than 10 px deep, followed by fades into the scene; only the strips are sampled. Reported on an iPhone 17 / iOS 27.0.1 for scroll-changing colours, with a known flicker on fast flings (ios-26-notes). This is variants 10 and 11.
  • Transparent fixed header, glass on an absolute child (1ar.io): avoid background-color and backdrop-filter on the fixed element itself.
  • Empty fixed div at the bottom edge (jahir.dev). Variant 4.
  • Always-taller document + shell (1ar.io). Variant 8.
  • Keep one theme-color in sync for Chrome only (nasedk.in).

Not found / unconfirmed

  • No Apple or WebKit blog statement describes this behaviour; the Safari 26.0 and 27.0 feature posts do not mention theme-color, tinting or safe-area changes (27.0 post: first 100k characters read; the rest was not fully reviewed). The source file is the best primary evidence.
  • Whether main's sampling rules equal what shipped in iOS 27.0, and whether commit 8b5cfad is in it.
  • The backdrop-filter result is "Multiple colours" in the source; how Safari draws that (probably its own blur material) is not documented.
  • Gradients and background images at the edge: only Bell (mostly simulator) and the source say anything.
  • No source tested a floating-toolbar iPhone with a non-scrolling overflow: hidden page on iOS 27; that is our case and the lab covers it (variants 9, 11).
## Research: what decides the colour behind the status bar and the floating toolbar (iOS 26/27 Safari) Written before any code change. Every claim has a link. "Unconfirmed" is said where it is. Short version first. ### Short version 1. **The grey band is our own `<body>` colour.** In your screenshot the band is a flat `#d0d5d9` (measured), right below the blue sky (`#a7c7f0`). That is the root colour our app sets (`background-color: var(--edge-shown)` on `body`). Safari paints the bar's area from the page, and when it finds nothing to sample it falls back to the page background colour. So we are in the "nothing qualifies" branch. 2. **Why nothing qualifies (the likely cause, not yet proven on your phone):** Safari only reads colour from `position: fixed` / `sticky` elements at the edge. Our fixed backdrop is a viewport-sized box with a transparent `background-color` (the sky is painted by children), and our bottom search bar floats 18 pt above the edge. A fixed viewport-sized layer is also treated as a "dimming layer" or "viewport-sized" candidate that is blended over the page background, not read as pixels. And our `body` is `overflow: hidden`, so the document never scrolls and Safari never composites page content under the bar either (the other way the bar can show the page). 3. **The lighter strip at the top is probably a different mechanism:** a WebKit change from July 2026 makes iOS 27 draw `UIColor.systemBackgroundColor` (near-white in light mode) in the top inset at scroll origin when no fixed element supplies a top colour. Unconfirmed that it is in the build on your phone. 4. **The simulator can differ.** Joe Bell (the best-documented tester I found) records a case that looked seamless in the simulator and was worse on an iPhone 17 / iOS 27.0.1. The lab prints the numbers so your report tells us what the phone does. ### 1. How Safari 26/27 picks the colour behind the status bar and the bottom toolbar **`theme-color` is ignored in Safari 26+.** The [safari-color-tinting README](https://github.com/andesco/safari-color-tinting): Safari 26 "still parses the meta tag but no longer uses this color". Same in [1ar.io](https://1ar.io/updates/safari-26-liquid-glass-web/) and [jahir.dev](https://jahir.dev/blog/safari-toolbar). [Joe Bell's apple-web-app notes](https://github.com/joe-bell/skills/blob/main/skills/apple-web-app/references/theme-color-and-status-bar.md) list "theme-color → ignored" in simulator runs on 26.5 and 27.0. (Keep it for Chrome/Android.) A Nasedkin write-up advises "do not assume it forces Safari 26-27 toolbar tinting" ([nasedk.in](https://nasedk.in/blog/ios26-safari-toolbar-colors/)). Not tested by anyone on a device on iOS 27 that I could find; lab variants 6 and 7 test it. **The rule comes from WebKit's source**, `LocalFrameView::fixedContainerEdges` ([LocalFrameView.cpp, main](https://github.com/WebKit/WebKit/blob/main/Source/WebCore/page/LocalFrameView.cpp); I read `main`, which may be newer than iOS 27.0). What it does, per edge: - Hit-tests **one point**: the middle of the edge, 4 px inside it (`sampleRectMargin = 4`). Only `position: fixed` or `sticky` elements count (`NotFixedOrSticky` is skipped). An `absolute` child of a fixed element is not a candidate. - A candidate must span at least **90%** of the viewport on that side (`minimumRatio = 0.9`). Elements with a border box of 10 px or less in either direction give no colour from their own background (`thinBorderWidth = 10`; a smaller one is sampled from a 2 px strip of real pixels). Hidden or nearly transparent elements are skipped. - **`background-color` is read, not `background-image`.** If the element's colour is not visible, WebKit asks `PageColorSampler::predominantColor` to sample the **rendered pixels** at the edge instead. Colour with alpha under 0.75 is blended over the page background colour (`minimumOpacityThresholdToClampToSolidColor = 0.75`). - **`backdrop-filter`: a fixed element with `backdrop-filter` is reported as `PredominantColorType::Multiple`** (`foundBackdropFilter`), not a solid colour. So a blurred bottom bar does not give a clean tint. - A viewport-sized fixed element with a background, no children, and a transparent or translucent colour is classed as a **dimming layer** and blended over the page background (`isProbablyDimmingContainer`, `IsDimmingLayer`). A viewport-sized fixed element also "prefers the existing colour" when one is already set (`preferExistingColor`). - If nothing qualifies, the colour falls back to the **page's extended background colour** (`pageExtendedBackgroundColor`). A WebKit engineer says the same in words: the solid extension happens when a fixed or sticky element sits at an edge next to an obscured inset, and a non-fixed header does not do it ([bug 301756, comment 2, Wenson Hsieh](https://bugs.webkit.org/show_bug.cgi?id=301756)). The thread never states that the `html`/`body` background is the source; that is the reporter's reading. **`html` / `body` background.** The fallback chain, from testing: `<body>`'s `background-color`, else `<html>`'s, else white (light) or black (dark) ([safari-color-tinting](https://github.com/andesco/safari-color-tinting); [Joe Bell, item 6](https://github.com/joe-bell/skills/blob/main/skills/apple-web-app/references/theme-color-and-status-bar.md)). A root `background-image` is "not reliable as toolbar tint input" ([1ar.io](https://1ar.io/updates/safari-26-liquid-glass-web/)); at scroll 0 Safari used the CSS `background-color`, not a fixed background-image layer ([Huxpro/hux.pro #92](https://github.com/Huxpro/hux.pro/pull/92), emulation only, closed). **Gradients and images at the edge.** Joe Bell: "A full-screen fixed gradient turns both bars solid": a `position: fixed; inset: 0` layer painted with `background-image` has a transparent `background-color`, is hit, and is blended over the page background, so the bars become the page colour and the gradient never reaches them. The fix there is full-width fixed edge strips with an opaque `background-color` above the gradient. Simulator only for that exact claim (notes from 2026-10-15), though the fixed/absolute split, widths and depths were also checked on an iPhone 17 Pro, iOS 27.0 ([same page](https://github.com/joe-bell/skills/blob/main/skills/apple-web-app/references/theme-color-and-status-bar.md)). **Thresholds from testing (disagree slightly with the source).** Community: within 4 px of the top / 3 px of the bottom, at least 80% wide, at least 3 px high ([andesco](https://github.com/andesco/safari-color-tinting), [jahir.dev](https://jahir.dev/blog/safari-toolbar)). Joe Bell says those do not match the source or his runs: 90% used, 80% not; 6 px deep used, 4 px ignored; a narrow pill at the centre of an edge takes the bar over (device-checked on an iPhone 17 Pro, iOS 27.0). I follow the source and Bell. The lab strips are full width and 28 px + inset deep, so both readings are met. **iOS 27 top edge (the "lighter strip" candidate).** WebKit commit [8b5cfad, "[iOS] Don't extend page colors under sidebar or top inset"](https://github.com/WebKit/WebKit/commit/8b5cfad939f76e35a20fbc885759fb82914843d0) (bug [317336](https://bugs.webkit.org/show_bug.cgi?id=317336), landed 2026-07-29): "starting in iOS 27, page colors or content should not appear in the leading or trailing obscured inset areas ... when the page is at its scroll origin." For the top, "if there's no visible sampled top color extension and the top inset is greater than zero, a non-interactive top system background extension is created", coloured `UIColor.systemBackgroundColor`; "if a sampled extension is visible, the top system extension fades out instead." Later, on 2026-10-10, [PR #76538](https://github.com/WebKit/WebKit/pull/76538) (bug 327043) was merged: "Remove the top system background color extensions for iOS". Safari 27.0 shipped on September 14 ([nasedk.in](https://nasedk.in/blog/ios26-safari-toolbar-colors/)). **Unconfirmed:** whether 8b5cfad is in the iOS 27 build on your phone, and whether the strip you see is that extension. It would explain a near-white band at scroll 0 with a coloured sky below it. If it is that, a qualifying fixed top strip should switch it off (variants 10, 11). ### 2. "Content under the toolbar": when it shows through, when Safari paints its own bar - With **no qualifying fixed edge element**, Safari paints no tint: page content scrolls visibly under the bars. The page background shows only where there is no document under the bar: above the page at scroll 0, below it at the end, and in overscroll. **A short page that never scrolls under a bar keeps that bar at the page background colour** ([Joe Bell, item 6](https://github.com/joe-bell/skills/blob/main/skills/apple-web-app/references/theme-color-and-status-bar.md); simulator 26.5 only). - That matches our page: the root does not scroll (`body { overflow: hidden }`, inner scroller). Two sources warn about it: `overflow: hidden` on body starved Safari's chrome compositor ([Huxpro #92](https://github.com/Huxpro/hux.pro/pull/92)), and at scroll 0 Safari "often shows the sampled or fallback root background-color, not visible media"; with non-zero scroll it can composite real pixels behind the top area ([1ar.io](https://1ar.io/updates/safari-26-liquid-glass-web/)). Their fix is a document that is always taller than the viewport (variant 8). Both are blog-level evidence, not Apple statements. - **`viewport-fit=cover`:** disputed. andesco and 1ar.io say the bottom tint needs it ([andesco](https://github.com/andesco/safari-color-tinting), [1ar.io](https://1ar.io/updates/safari-26-liquid-glass-web/)); jahir.dev says cover plus an explicit html colour did not fix their case ([jahir.dev](https://jahir.dev/blog/safari-toolbar)); Joe Bell says it makes no difference to either bar. In a Safari tab WebKit itself says it will not give top and bottom insets for cover in portrait: [bug 306465, Tim Horton, 2026-08-19](https://bugs.webkit.org/show_bug.cgi?id=306465): "for web compatibility's sake, we can't provide top and bottom insets like you're hoping for here". The simulator agrees: `env(safe-area-inset-top/bottom)` is 0 in a Safari tab (lab output). So in a tab, env insets can never size a bar strip; use fixed minimums (lab strips use `max(28px, inset)` style sizes). - **A fixed element at the bottom with a solid background:** this is exactly what the source samples (a full-width, opaque, more than 10 px deep fixed element). jahir.dev's working recipe is an empty fixed div at `bottom: -8px`, `min-height: 12px`, `width: 100%`, with a `background-color` ([jahir.dev](https://jahir.dev/blog/safari-toolbar)). Pitfalls recorded by Bell: a narrow fixed pill at an edge's centre takes the bar over; an empty full-screen fixed layer above a dim hides it; a strip faded in by opacity or translated in "sticks" once sampled (keep strips in place and change their colour); `<html>` and `<body>` in different colours leave a 1 px hairline (same page). - Bottom tint disabled by the user: Settings > Apps > Safari > Tabs > Allow Website Tinting ([andesco](https://github.com/andesco/safari-color-tinting)). Worth checking it is on on your phone. ### 3. Home Screen apps (standalone) - `apple-mobile-web-app-status-bar-style`: `default` is an opaque system/white bar and the page does not draw under it; `black` is opaque black; `black-translucent` is transparent and the page draws under it, with a real `env(safe-area-inset-top)`. It only applies when `apple-mobile-web-app-capable` is `yes` and the app was added to the Home Screen ([Joe Bell](https://github.com/joe-bell/skills/blob/main/skills/apple-web-app/references/theme-color-and-status-bar.md); his device checks were iOS 27.0, "No iOS 26 device was checked"). In his table the top inset is `0px` for `default` and `black` and a real inset for `black-translucent`. Manifest `theme_color` is not applied to Home Screen apps as of 26.1 (same page). Nothing I found documents a change to these three values for iOS 26/27 beyond the bug below. - **WebKit [301994](https://bugs.webkit.org/show_bug.cgi?id=301994)**, now "Reopened" (last change 2026-10-15): fixed in 26.2, back on 26.5.2 and the iOS 27 beta. Report of 2026-07-20: `screen.height` 874; `innerHeight`, `100dvh`, `clientHeight` and `visualViewport.height` all 812 (offsetTop 0): "a 62px system-drawn gap" above the web layer; tabs are fine; "the bottom bar color is cached from the page background and updates only after relaunch" (one commenter's claim, unconfirmed). Another commenter argues `vh`/`lvh` match the full screen while `svh`/`dvh` match the area above the bar. No engineer has explained it (rdar://184081721). Related: [301108](https://bugs.webkit.org/show_bug.cgi?id=301108) (`viewport-fit=cover` does not fill the screen). - Our own earlier notes in #396 and #445 collect more reports (clchrf/money, tpdbf5509/busssss, ander-gym, collie). They disagree about which unit is short, so **no single unit can be trusted in standalone**: measure. ### 4. Units and values (what the evidence supports) | Mode | Use | Evidence | |---|---|---| | Safari tab | Backdrop as `position: fixed; inset: 0` (no unit needed). `100svh` for the shell; `100lvh` only for something that must reach under a collapsed toolbar. `env(safe-area-inset-*)` is 0 in a tab. | tab numbers: 402x874 screen, `innerHeight` 714, `lvh` 754 (lab, simulator); [bug 306465](https://bugs.webkit.org/show_bug.cgi?id=306465); Safari 26.1 fixed a `100dvh` bottom gap ([Joe Bell notes](https://github.com/joe-bell/skills/blob/main/skills/apple-web-app/references/ios-26-notes.md)) | | Home Screen | Measure `screen.height`, `innerHeight` and a `fixed; top: 0; bottom: 0` box at runtime and size the backdrop to the largest; real `env()` insets only with `black-translucent`. | [301994](https://bugs.webkit.org/show_bug.cgi?id=301994) | | `html { background }` | Set `background-color` on `body` (it wins over `html`) and keep `html` the same colour. Not a gradient. | [andesco](https://github.com/andesco/safari-color-tinting); hairline note in Bell | `viewport-fit=cover` in Safari tabs: neutral to harmful per the sources above; the lab compares 2 and 3. ### 5. Recipes people report working - **Edge strips over a fixed background** (Joe Bell, recipe E): full-width fixed strips at both edges, opaque `background-color`, more than 10 px deep, followed by fades into the scene; only the strips are sampled. Reported on an iPhone 17 / iOS 27.0.1 for scroll-changing colours, with a known flicker on fast flings ([ios-26-notes](https://github.com/joe-bell/skills/blob/main/skills/apple-web-app/references/ios-26-notes.md)). This is variants 10 and 11. - **Transparent fixed header, glass on an absolute child** ([1ar.io](https://1ar.io/updates/safari-26-liquid-glass-web/)): avoid `background-color` and `backdrop-filter` on the fixed element itself. - **Empty fixed div at the bottom edge** ([jahir.dev](https://jahir.dev/blog/safari-toolbar)). Variant 4. - **Always-taller document + shell** ([1ar.io](https://1ar.io/updates/safari-26-liquid-glass-web/)). Variant 8. - Keep one `theme-color` in sync for Chrome only ([nasedk.in](https://nasedk.in/blog/ios26-safari-toolbar-colors/)). ### Not found / unconfirmed - No Apple or WebKit blog statement describes this behaviour; the Safari [26.0](https://webkit.org/blog/17333/webkit-features-in-safari-26-0/) and [27.0](https://webkit.org/blog/18325/webkit-features-for-safari-27-0/) feature posts do not mention theme-color, tinting or safe-area changes (27.0 post: first 100k characters read; the rest was not fully reviewed). The source file is the best primary evidence. - Whether `main`'s sampling rules equal what shipped in iOS 27.0, and whether commit 8b5cfad is in it. - The `backdrop-filter` result is "Multiple colours" in the source; how Safari draws that (probably its own blur material) is not documented. - Gradients and background images at the edge: only Bell (mostly simulator) and the source say anything. - No source tested a floating-toolbar iPhone with a non-scrolling `overflow: hidden` page on iOS 27; that is our case and the lab covers it (variants 9, 11).
Author
Owner

Addendum to the research: backdrop-filter at the screen edge (the top 20-40 px of glass darkening)

Hypothesis from the harness work on #445 (the evidence is in the #445 comment): WebKit blurs nothing above the top of the screen, so a glass element's blur mixes in the root background there, and the top 20-40 px of glass come out flatter/darker. A red root turned exactly that strip red in the simulator. What I could find for and against:

What is documented

  • The spec says the backdrop image is clipped to the element's border box ("Apply a clip to the contents of T', using the border box of element B"), and that a blur() in the list uses edgeMode="mirror", with the edge being "the clipped, transformed border box of the element" (Filter Effects 2, editor's draft). So by the spec, pixels beyond the element's box should not bleed in; edges are mirrored. The same draft says the root element is always a Backdrop Root because "there is nothing above the root element". It does not say what a blur reads past the viewport. The draft has no working-group consensus on Backdrop Root.
  • That implementations differ at the edge is old: in a 2019 thread Markus Stange asks "how Safari / CoreAnimation gets around this problem" (the discontinuity when a clipped backdrop moves), and a quoted remark from Mason Freed says WebKit's implementation "does appear to clip the input to the border box, or something close" (public-fxtf thread, 2019-09-19; the page shows only part of the exchange).
  • WebKit chooses the edge mode per platform: bug 275919 (fixed 2024-06-27, visionOS) switched the blur to inputNormalizeEdgesTransparent because "the check for whether the backdrop is opaque doesn't work". That shows WebKit has two edge behaviours (opaque-backdrop and transparent-edges normalisation) and picks by whether it thinks the backdrop is opaque. I found no iOS Safari equivalent write-up. Unconfirmed that iOS takes the same path or what it does at the viewport edge.
  • A common workaround in write-ups is to enlarge the blurred element past its visible edge and crop it back with mask-image, so outside colours can contribute (DEV: "Your backdrop-filter is working. Your background is hiding it"; a blog-level source, not a WebKit statement, and it does not mention the screen edge).

What I could not find: no WebKit bug, release note or write-up about "blur edge bleeding at the viewport edge" or the status-bar area on iOS 26/27. The hypothesis is consistent with the spec's "nothing above the root" and with the red-root observation, but nothing public confirms the mechanism. The lab tests it directly:

  • Variant 13 (X): the fixed sky is oversized (inset: -80px), so a live blur at the screen edge has sky pixels to read beyond the edge. Caveat: if WebKit clips the backdrop input at the viewport (as the 2019 thread suggests), oversizing will change nothing; that would itself be a finding.
  • Variant 14 (Y): the sky is blurred once (an oversized layer with filter: blur) and the glass has no backdrop-filter. If the top darkening disappears here, live blur at the edge is the cause.
  • &root=red on any variant paints the root and body red, so a bleed shows as red at the edge (variants 3, 13 and 14 were run with it).
  • Neither X nor Y has edge strips, on purpose, so the top is not hidden under one. This is a separate question from the grey bottom band: the bands in #476 are about what colour Safari paints in its bars; this one is about our own glass near the top edge.
## Addendum to the research: `backdrop-filter` at the screen edge (the top 20-40 px of glass darkening) Hypothesis from the harness work on #445 (the evidence is in [the #445 comment](https://git.kayg.org/kayg/calternal/issues/445)): WebKit blurs nothing above the top of the screen, so a glass element's blur mixes in the **root background** there, and the top 20-40 px of glass come out flatter/darker. A red root turned exactly that strip red in the simulator. What I could find for and against: **What is documented** - The spec says the backdrop image is clipped to the element's border box ("Apply a clip to the contents of T', using the border box of element B"), and that a `blur()` in the list uses `edgeMode="mirror"`, with the edge being "the clipped, transformed border box of the element" ([Filter Effects 2, editor's draft](https://drafts.csswg.org/filter-effects-2/)). So by the spec, pixels beyond the element's box should not bleed in; edges are mirrored. The same draft says the root element is always a Backdrop Root because "there is nothing above the root element". It does not say what a blur reads past the viewport. The draft has no working-group consensus on Backdrop Root. - That implementations differ at the edge is old: in a 2019 thread Markus Stange asks "how Safari / CoreAnimation gets around this problem" (the discontinuity when a clipped backdrop moves), and a quoted remark from Mason Freed says WebKit's implementation "does appear to clip the input to the border box, or something close" ([public-fxtf thread, 2019-09-19](https://lists.w3.org/Archives/Public/public-fxtf-archive/2019Sep/0038.html); the page shows only part of the exchange). - WebKit chooses the edge mode per platform: [bug 275919](https://bugs.webkit.org/show_bug.cgi?id=275919) (fixed 2024-06-27, visionOS) switched the blur to `inputNormalizeEdgesTransparent` because "the check for whether the backdrop is opaque doesn't work". That shows WebKit has two edge behaviours (opaque-backdrop and transparent-edges normalisation) and picks by whether it thinks the backdrop is opaque. I found no iOS Safari equivalent write-up. **Unconfirmed** that iOS takes the same path or what it does at the viewport edge. - A common workaround in write-ups is to enlarge the blurred element past its visible edge and crop it back with `mask-image`, so outside colours can contribute ([DEV: "Your backdrop-filter is working. Your background is hiding it"](https://dev.to/parsajiravand/your-backdrop-filter-is-working-your-background-is-hiding-it-2k51); a blog-level source, not a WebKit statement, and it does not mention the screen edge). **What I could not find:** no WebKit bug, release note or write-up about "blur edge bleeding at the viewport edge" or the status-bar area on iOS 26/27. The hypothesis is consistent with the spec's "nothing above the root" and with the red-root observation, but nothing public confirms the mechanism. The lab tests it directly: - **Variant 13 (X):** the fixed sky is oversized (`inset: -80px`), so a live blur at the screen edge has sky pixels to read beyond the edge. Caveat: if WebKit clips the backdrop input at the viewport (as the 2019 thread suggests), oversizing will change nothing; that would itself be a finding. - **Variant 14 (Y):** the sky is blurred once (an oversized layer with `filter: blur`) and the glass has no `backdrop-filter`. If the top darkening disappears here, live blur at the edge is the cause. - **`&root=red`** on any variant paints the root and body red, so a bleed shows as red at the edge (variants 3, 13 and 14 were run with it). - Neither X nor Y has edge strips, on purpose, so the top is not hidden under one. This is a separate question from the grey bottom band: the bands in #476 are about what colour *Safari* paints in its bars; this one is about our own glass near the top edge.
Author
Owner

Safe-area lab is live: https://preview.calternal.cloud/safe-area-lab.html?v=1

Mockup, not the product. PR: "mockup, do not merge" (issue/476-safe-area-lab, file apps/mockup/safe-area-lab.html; one file, no build, no assets). Served no-cache; the live bytes match the build (sha256 of the live file equals the file in the PR). Research is in the two comments above.

Each page is a sky backdrop, a long Journal list, the two top pills and the bottom search bar, plus a card at the top with big number buttons, one line saying what the variant does, and live numbers: innerHeight (and the min/max it has been), visualViewport height/offsetTop/scale, screen size, the real env(safe-area-inset-*), dvh/svh/lvh/vh in px, a fixed; top: 0; bottom: 0 box height, display-mode, scroll positions, theme-color. The two pills at the top have ◀ ▶ to flip variants; every flip is a full reload on purpose (Safari keeps what it sampled for the bars until reload). "Copy numbers" copies the block so you can paste it into a reply. Variant picked with ?v=N.

Extra switches: &root=red paints the root red (shows what an edge shows through), &sb=default|black|black-translucent (Home Screen status bar style; default is what the app uses).

The 15 variants (one strategy each)

# Strategy
1 (a) html background-image: top colour to bottom colour. No fixed layer.
2 (b) fixed full-bleed backdrop (inset: 0), no viewport-fit
3 (c) same, with viewport-fit=cover + env insets (2 vs 3 isolates viewport-fit)
4 (d) 3 + a fixed, full-width, opaque strip touching the bottom edge in the sky's bottom colour
5 (e) 4's strip, see-through with backdrop-filter: blur(20px)
6 (f) 3 + a static theme-color
7 (f) 3 + a theme-color rewritten on scroll
8 (g) the app shell in a document that is always 160 px taller than the screen, starting scrolled 1 px
9 (h) what the app does today: body overflow hidden, flat root colour #d0d5d9, inner scroller, fixed backdrop with children, app's theme-color
10 edge strips (opaque, full width) at both edges + fades into the sky, page scrolls (research: Bell's recipe E)
11 10's strips on the app's shell (page does not scroll)
12 backdrop with a child, sized from screen.height, no strips (for the Home Screen app's short viewport)
13 X: the sky oversized (inset: -80px), live blur on the glass, no strips
14 Y: pre-blurred sky, glass is a plain tint, no live backdrop-filter, no strips
15 Z: pre-blurred sky, no full-screen live blur, opaque edge strips at both edges, the only live blur a masked ramp behind the top pills and bottom bar that shows only while content is under them (starts 8 px inside the edge so Safari still samples the strip)

Checklist for kayg (light mode, Safari tab with the floating toolbar; about 2 minutes)

For each number, load it (?v=N), look at the top and the very bottom at scroll 0, then scroll to the end and look again. Reply with the number and one of: seamless, grey/flat band at the bottom, lighter strip at the top, both, plus "Copy numbers" for the ones that look different.

  1. ?v=15 first (my prediction)
  2. ?v=10
  3. ?v=11
  4. ?v=9 (today's app: you should see the grey band; if not, the lab is not showing your case and we need to know)
  5. ?v=3, ?v=2 (does viewport-fit matter?)
  6. ?v=4, ?v=5 (bottom strip only; solid vs blurred)
  7. ?v=14, ?v=13 (top strip: does the lighter band go away with no live blur / oversized sky?)
  8. ?v=8, ?v=1, ?v=12
  9. ?v=6, ?v=7 (does theme-color do anything at all?)
  10. &root=red on ?v=3, ?v=13, ?v=14, ?v=15: is there red at the top or bottom edge of the glass?
  11. Home Screen app: in Safari open ?v=15 (then ?v=9), Share, Add to Home Screen, open the icon, check top and bottom, and "Copy numbers" (we want innerHeight vs screen there).
  12. Check Settings > Apps > Safari > Tabs > Allow Website Tinting is on.

Prediction

Variant 15 wins; 10 is the fallback; 9 shows the band.

  • 9 is today's page, and by the sources it falls in the branch where Safari finds nothing to sample and paints the root colour (#d0d5d9, the band's measured colour): a viewport-sized fixed backdrop with a transparent background-color, a floating bottom bar that is not at the edge, and a body that never scrolls (WebKit source, Bell, item 6 and the gradient pitfall).
  • 10 and 15 give Safari exactly what it samples at each edge: a full-width, opaque, more-than-10 px fixed element in the sky's edge colour. Bell reports this recipe on an iPhone 17 with iOS 27.0.1, with a possible flicker on fast flings.
  • 15 additionally removes our own live blur at the screen edges (the glass and the status-bar blur), which is the suspected cause of the darker/flatter top 20-40 px (the #445 red-root evidence), and keeps live blur only as a short ramp behind the pills, placed so it is never the element Safari samples (WebKit reports a backdrop-filter element as a mix of colours, per the source).
  • What would contradict me: if 9 looks seamless on the phone (then the lab is not our case), if 10 and 15 still show a band (then the strips are not being hit, and the numbers will say why: look at visualViewport and the fixed top/bottom 0 box height), or if 14 fixes the top but 15 does not (then the ramp blur is hurting).

Simulator (iPhone 18 Pro, iOS 27.0, Safari tab, light)

Honest limits: the simulator is shared, and another session kept bringing its own app to the front, so I only got clean, verified-visible screenshots of 15 (top and end) and 10 (top) within a reasonable time. 15 and 10 came out seamless at both edges: the left-gutter colour is #a8c8f1 from 8 pt down to the clock and #a7c7f0 at the bottom, no step above 3 (a 16-level step in 10 at 719 pt is the card's own edge, not a bar). Numbers it printed: screen 402x874, innerHeight 714, dvh/svh 714, lvh/vh 754, fixed top/bottom 0 box 714, visualViewport 714 with offsetTop 0, all env(safe-area-inset-*) 0 in a Safari tab (matches WebKit bug 306465: no top/bottom insets for viewport-fit=cover in portrait). The other variants were not captured; the phone numbers are what we need anyway.

Where the simulator may differ from your phone: (1) kayg's own report is the proof that it does: the same page showed no bottom band there and a flat grey band on the phone; (2) the status-bar and toolbar compositing and the floating toolbar's material are drawn by the system UI, which the simulator may not reproduce; (3) the simulator's innerHeight held at 714 for the whole run, while on a Home Screen app a phone can report it short after launch (WebKit 301994); the lab's "seen min..max" would show that; (4) Joe Bell recorded a page that looked seamless in the simulator and was worse on an iPhone 17 / iOS 27.0.1 (ios-26-notes). Screenshots: not attached (kept in the harness scratch folder).

Root cause, as I would write it (the app, not Safari)

Per the harness work: the phone list and sidebar screens are full-bleed live-blur sheets touching both screen edges, with a second blur layer under the status bar. With a live backdrop-filter at the screen edge, WebKit has nothing above the edge to blur, so it mixes in the root colour, and the top of the glass goes flat; and the fixed elements at the edges are the ones Safari samples, so a backdrop-filter there is reported as a mix of colours instead of the sky colour. I did not verify this myself: the web research found the spec's "nothing above the root" and the source's backdrop-filter rule, but no WebKit write-up of the edge bleed; variants 13/14/15 with &root=red test it on the phone.

Next (after your numbers)

Apply the winning rule to the app and all mockups, with an e2e guard (per the plan in the description). Nothing in the app changes until you say.

## Safe-area lab is live: https://preview.calternal.cloud/safe-area-lab.html?v=1 Mockup, not the product. PR: "mockup, do not merge" (`issue/476-safe-area-lab`, file `apps/mockup/safe-area-lab.html`; one file, no build, no assets). Served `no-cache`; the live bytes match the build (sha256 of the live file equals the file in the PR). Research is in the two comments above. Each page is a sky backdrop, a long Journal list, the two top pills and the bottom search bar, plus a card at the top with big number buttons, one line saying what the variant does, and live numbers: `innerHeight` (and the min/max it has been), `visualViewport` height/offsetTop/scale, screen size, the real `env(safe-area-inset-*)`, `dvh/svh/lvh/vh` in px, a `fixed; top: 0; bottom: 0` box height, display-mode, scroll positions, theme-color. The two pills at the top have ◀ ▶ to flip variants; every flip is a full reload on purpose (Safari keeps what it sampled for the bars until reload). "Copy numbers" copies the block so you can paste it into a reply. Variant picked with `?v=N`. Extra switches: `&root=red` paints the root red (shows what an edge shows through), `&sb=default|black|black-translucent` (Home Screen status bar style; default is what the app uses). ### The 15 variants (one strategy each) | # | Strategy | |---|---| | 1 | (a) `html` background-image: top colour to bottom colour. No fixed layer. | | 2 | (b) fixed full-bleed backdrop (`inset: 0`), **no** `viewport-fit` | | 3 | (c) same, with `viewport-fit=cover` + env insets (2 vs 3 isolates `viewport-fit`) | | 4 | (d) 3 + a fixed, full-width, opaque strip touching the bottom edge in the sky's bottom colour | | 5 | (e) 4's strip, see-through with `backdrop-filter: blur(20px)` | | 6 | (f) 3 + a static `theme-color` | | 7 | (f) 3 + a `theme-color` rewritten on scroll | | 8 | (g) the app shell in a document that is always 160 px taller than the screen, starting scrolled 1 px | | 9 | (h) what the app does today: `body` overflow hidden, flat root colour `#d0d5d9`, inner scroller, fixed backdrop with children, app's `theme-color` | | 10 | edge strips (opaque, full width) at both edges + fades into the sky, page scrolls (research: Bell's recipe E) | | 11 | 10's strips on the app's shell (page does not scroll) | | 12 | backdrop with a child, sized from `screen.height`, no strips (for the Home Screen app's short viewport) | | 13 | X: the sky oversized (`inset: -80px`), live blur on the glass, no strips | | 14 | Y: pre-blurred sky, glass is a plain tint, no live `backdrop-filter`, no strips | | 15 | **Z: pre-blurred sky, no full-screen live blur, opaque edge strips at both edges, the only live blur a masked ramp behind the top pills and bottom bar that shows only while content is under them (starts 8 px inside the edge so Safari still samples the strip)** | ### Checklist for kayg (light mode, Safari tab with the floating toolbar; about 2 minutes) For each number, load it (`?v=N`), look at the top and the very bottom at scroll 0, then scroll to the end and look again. Reply with the number and one of: **seamless**, **grey/flat band at the bottom**, **lighter strip at the top**, **both**, plus "Copy numbers" for the ones that look different. 1. [ ] `?v=15` first (my prediction) 2. [ ] `?v=10` 3. [ ] `?v=11` 4. [ ] `?v=9` (today's app: you should see the grey band; if not, the lab is not showing your case and we need to know) 5. [ ] `?v=3`, `?v=2` (does `viewport-fit` matter?) 6. [ ] `?v=4`, `?v=5` (bottom strip only; solid vs blurred) 7. [ ] `?v=14`, `?v=13` (top strip: does the lighter band go away with no live blur / oversized sky?) 8. [ ] `?v=8`, `?v=1`, `?v=12` 9. [ ] `?v=6`, `?v=7` (does `theme-color` do anything at all?) 10. [ ] `&root=red` on `?v=3`, `?v=13`, `?v=14`, `?v=15`: is there red at the top or bottom edge of the glass? 11. [ ] Home Screen app: in Safari open `?v=15` (then `?v=9`), Share, Add to Home Screen, open the icon, check top and bottom, and "Copy numbers" (we want `innerHeight` vs `screen` there). 12. [ ] Check Settings > Apps > Safari > Tabs > Allow Website Tinting is on. ### Prediction **Variant 15 wins; 10 is the fallback; 9 shows the band.** - 9 is today's page, and by the sources it falls in the branch where Safari finds nothing to sample and paints the root colour (`#d0d5d9`, the band's measured colour): a viewport-sized fixed backdrop with a transparent `background-color`, a floating bottom bar that is not at the edge, and a body that never scrolls ([WebKit source](https://github.com/WebKit/WebKit/blob/main/Source/WebCore/page/LocalFrameView.cpp), [Bell, item 6 and the gradient pitfall](https://github.com/joe-bell/skills/blob/main/skills/apple-web-app/references/theme-color-and-status-bar.md)). - 10 and 15 give Safari exactly what it samples at each edge: a full-width, opaque, more-than-10 px fixed element in the sky's edge colour. Bell reports this recipe on an iPhone 17 with iOS 27.0.1, with a possible flicker on fast flings. - 15 additionally removes our own live blur at the screen edges (the glass and the status-bar blur), which is the suspected cause of the darker/flatter top 20-40 px (the #445 red-root evidence), and keeps live blur only as a short ramp behind the pills, placed so it is never the element Safari samples (WebKit reports a `backdrop-filter` element as a mix of colours, per the source). - What would contradict me: if 9 looks seamless on the phone (then the lab is not our case), if 10 and 15 still show a band (then the strips are not being hit, and the numbers will say why: look at `visualViewport` and the `fixed top/bottom 0` box height), or if 14 fixes the top but 15 does not (then the ramp blur is hurting). ### Simulator (iPhone 18 Pro, iOS 27.0, Safari tab, light) Honest limits: the simulator is shared, and another session kept bringing its own app to the front, so I only got clean, verified-visible screenshots of **15 (top and end) and 10 (top)** within a reasonable time. 15 and 10 came out seamless at both edges: the left-gutter colour is `#a8c8f1` from 8 pt down to the clock and `#a7c7f0` at the bottom, no step above 3 (a 16-level step in 10 at 719 pt is the card's own edge, not a bar). Numbers it printed: screen 402x874, `innerHeight` 714, `dvh/svh` 714, `lvh/vh` 754, `fixed top/bottom 0` box 714, `visualViewport` 714 with offsetTop 0, all `env(safe-area-inset-*)` 0 in a Safari tab (matches [WebKit bug 306465](https://bugs.webkit.org/show_bug.cgi?id=306465): no top/bottom insets for `viewport-fit=cover` in portrait). The other variants were not captured; the phone numbers are what we need anyway. Where the simulator may differ from your phone: (1) kayg's own report is the proof that it does: the same page showed no bottom band there and a flat grey band on the phone; (2) the status-bar and toolbar compositing and the floating toolbar's material are drawn by the system UI, which the simulator may not reproduce; (3) the simulator's `innerHeight` held at 714 for the whole run, while on a Home Screen app a phone can report it short after launch ([WebKit 301994](https://bugs.webkit.org/show_bug.cgi?id=301994)); the lab's "seen min..max" would show that; (4) Joe Bell recorded a page that looked seamless in the simulator and was worse on an iPhone 17 / iOS 27.0.1 ([ios-26-notes](https://github.com/joe-bell/skills/blob/main/skills/apple-web-app/references/ios-26-notes.md)). Screenshots: not attached (kept in the harness scratch folder). ### Root cause, as I would write it (the app, not Safari) Per the harness work: the phone list and sidebar screens are full-bleed live-blur sheets touching both screen edges, with a second blur layer under the status bar. With a live `backdrop-filter` at the screen edge, WebKit has nothing above the edge to blur, so it mixes in the root colour, and the top of the glass goes flat; and the fixed elements at the edges are the ones Safari samples, so a `backdrop-filter` there is reported as a mix of colours instead of the sky colour. **I did not verify this myself:** the web research found the spec's "nothing above the root" and the source's `backdrop-filter` rule, but no WebKit write-up of the edge bleed; variants 13/14/15 with `&root=red` test it on the phone. ### Next (after your numbers) Apply the winning rule to the app and all mockups, with an e2e guard (per the plan in the description). Nothing in the app changes until you say.
Author
Owner

kayg tested the lab on a real iPhone (iOS 27 Safari):

  • TOP: variant 15 wins. That's the opaque top edge strip plus the masked ramp blur behind the pills. Change: the ramp must be shorter vertically, ending slightly below the pills.
  • BOTTOM: variant 14 wins. There's no bottom edge strip; the content scrolls under Safari's own glass toolbar and shows through it, the native look.

Apply this combination to the app (#445) and to all mockups (chrome.html).

**kayg tested the lab on a real iPhone (iOS 27 Safari):** - **TOP: variant 15 wins.** That's the opaque top edge strip plus the masked ramp blur behind the pills. Change: the ramp must be shorter vertically, ending slightly below the pills. - **BOTTOM: variant 14 wins.** There's no bottom edge strip; the content scrolls under Safari's own glass toolbar and shows through it, the native look. Apply this combination to the app (#445) and to all mockups (chrome.html).
Author
Owner

Closing during the 26 Oct handover cleanup: The safe-area research and lab are done. Kayg's chosen variants landed in dev (PRs #521, #528).

Closing during the 26 Oct handover cleanup: The safe-area research and lab are done. Kayg's chosen variants landed in dev (PRs #521, #528).
kayg closed this issue 2026-10-26 08:46:32 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal#476
No description provided.