Commit 0deac48
MENDELU: force a permanent scrollbar so reload really stops shifting (#1407)
PR #1406 reserved the scrollbar gutter with `scrollbar-gutter: stable` on
`html`, but on this theme that declaration is ignored: `body { overflow-x:
hidden }` makes BODY the propagated viewport scroll container, so a gutter
set on `html` is never held. Verified on the live build -- clientWidth still
toggled 1425<->1440 on every reload, and centred content plus the right-anchored
header chrome still jumped by the scrollbar width (the overlay can't hide it: it
lives in the page and shifts with it).
Force a permanent scrollbar via `overflow-y: scroll` on `html` (previously only
in the skipped `@supports not(...)` fallback). Measured per-rAF on the live dev
instance in the real-user condition: clientWidth now stays pinned at 1425 across
the whole reload (was 1425<->1440). scrollbar-gutter: stable is kept as a
progressive enhancement for browsers/themes where it does take effect.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 04766ed commit 0deac48
1 file changed
Lines changed: 14 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
10 | 20 | | |
11 | 21 | | |
12 | 22 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
0 commit comments