1 Commits
Author SHA1 Message Date
poli0981andClaude Opus 5.5 444e0e43e9 Fix iPhone-only bugs: invisible Waveline, page showing above the header (#107)
Two bugs seen only on iPhone (Safari, iOS 26):

- The resting Waveline drew nothing in WebKit. Its gradient used the
  default objectBoundingBox units, and a flat line's bounding box is 0 px
  tall, so WebKit drops the gradient and the stroke with it (Chrome draws
  it anyway). The footer, section headings and error pages showed an
  empty band. Both gradients now use userSpaceOnUse across the viewBox.
- Safari 26 shows the page under the status bar and extends a sticky
  header's colour up to the edge, but its fixed-container sampling
  (LocalFrameView::fixedContainerEdges) bails out to "multiple colours"
  when the container has a backdrop-filter, so the page scrolled into view
  above the header. The site header, mobile tab bar and admin bar drop
  the blur and use opaque backgrounds.

CHANGELOG 2.1.1; Sonar project version 2.1.1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 12:13:46 +07:00
7 changed files with 41 additions and 10 deletions

No files matched your search

+15 -1
View File
@@ -7,6 +7,19 @@ and are not listed here.
## [Unreleased]
## [2.1.1] — 2026-10-28
### Fixed
- iPhone: the Waveline is visible again while it rests. Its gradient was sized to the line's
bounding box, which is 0 px tall for a flat line, and WebKit then draws nothing — the footer,
the section headings and the error pages showed an empty band where the line belongs. Chrome
drew it anyway, so only iOS browsers were affected.
- iPhone (Safari 26): the page no longer scrolls into view above the sticky header, under the
status bar. Safari extends a sticky header's colour up to the screen edge only when the header
has no `backdrop-filter`; the header, the mobile tab bar and the admin bar dropped the blur
and are now opaque.
## [2.1.0] — 2026-10-27
### Security
@@ -129,7 +142,8 @@ The public launch is tagged `v1-launch`; the 1.x changes after it were not tagge
- **2026-10** — Custom Worker entry in front of every page; Workers Rate Limiting; Web Analytics;
topic email aliases; R2 media; the Turnstile gate; the admin at `admin.poli0981.dev`.
[Unreleased]: https://github.com/poli0981/poli0981-dev/compare/v2.1.0...HEAD
[Unreleased]: https://github.com/poli0981/poli0981-dev/compare/v2.1.1...HEAD
[2.1.1]: https://github.com/poli0981/poli0981-dev/compare/v2.1.0...v2.1.1
[2.1.0]: https://github.com/poli0981/poli0981-dev/compare/v2.0.0...v2.1.0
[2.0.0]: https://github.com/poli0981/poli0981-dev/releases/tag/v2.0.0
[1.x]: https://github.com/poli0981/poli0981-dev/releases/tag/v1-launch
+1 -1
View File
@@ -4,7 +4,7 @@ sonar.organization=poli0981
sonar.projectKey=poli0981_poli0981-dev
sonar.projectName=poli0981-dev
# Bumped with each release tag; "previous version" new-code periods start from it.
sonar.projectVersion=2.1.0
sonar.projectVersion=2.1.1
sonar.sourceEncoding=UTF-8
# .github is analyzed too: the workflow rules (pinned actions, no npx/install scripts) are
+4 -2
View File
@@ -93,8 +93,10 @@ const pathname = Astro.url.pathname;
position: sticky;
inset-block-start: 0;
z-index: 40;
background: color-mix(in srgb, var(--bg) 85%, transparent);
backdrop-filter: blur(8px);
/* Opaque and without backdrop-filter: Safari 26 extends a sticky header's background
up under the iPhone status bar, but gives up when the header has a backdrop-filter —
the page then scrolled into view above the header. */
background: var(--bg);
border-block-end: 1px solid var(--line);
}
.header-inner {
+3 -2
View File
@@ -89,8 +89,9 @@ const tabs = [
z-index: 40;
display: flex;
align-items: stretch;
background: color-mix(in srgb, var(--surface) 92%, transparent);
backdrop-filter: blur(10px);
/* Opaque, no backdrop-filter — same reason as the site header: Safari 26 only extends
a fixed bar's colour under its own toolbar when the bar has no backdrop-filter. */
background: var(--surface);
border-block-start: 1px solid var(--line);
padding-block-end: env(safe-area-inset-bottom, 0);
}
+4 -1
View File
@@ -94,7 +94,10 @@
aria-hidden="true"
>
<defs>
<linearGradient id={uid} x1="0" y1="0" x2="1" y2="0">
<!-- userSpaceOnUse, not the default objectBoundingBox: the idle flatline's bounding box
is 0 tall, and WebKit (every iOS browser) then drops the gradient, and with it the
whole stroke — the footer showed an empty band on iPhone. -->
<linearGradient id={uid} gradientUnits="userSpaceOnUse" x1="0" y1="0" x2={coordWidth} y2="0">
<stop class="s-line" offset="0%" />
<stop class="s-line" offset="36%" />
<stop class="s-accent" offset="50%" />
+2 -2
View File
@@ -124,8 +124,8 @@ const nav = [
inset-block-start: 0;
z-index: 20;
border-block-end: 1px solid var(--line);
background: color-mix(in srgb, var(--surface) 92%, transparent);
backdrop-filter: blur(8px);
/* Opaque, no backdrop-filter: see .site-header (Safari 26 status-bar tint). */
background: var(--surface);
}
.admin-top {
display: flex;
+12 -1
View File
@@ -39,7 +39,18 @@ const t = useTranslations(locale);
<main class="err">
<svg class="flatline" viewBox="0 0 320 24" preserveAspectRatio="none" aria-hidden="true">
<defs>
<linearGradient id="err-flat" x1="0" y1="0" x2="1" y2="0">
{
/* userSpaceOnUse: a flat line has a 0-tall bounding box, and WebKit drops an
objectBoundingBox gradient on it — the line vanished on iPhone (see Waveline). */
}
<linearGradient
id="err-flat"
gradientUnits="userSpaceOnUse"
x1="0"
y1="0"
x2="320"
y2="0"
>
<stop offset="0%" class="l"></stop>
<stop offset="42%" class="l"></stop>
<stop offset="50%" class="a"></stop>