Symptom: on phones, the full-screen menu on this site opened as a thin strip trapped inside the header instead of covering the screen. Desktop was fine.
Cause: the header had backdrop-filter: blur() for that frosted-glass look. Like transform and filter, backdrop-filter makes an element the containing block for any position: fixed children. So the menu overlay was “fixed” relative to the header, not the viewport, and it was only as big as the header.
Fix: move the blur off the header and onto a pseudo-element behind it. Same look, and the header is no longer a containing block.
.site-header { position: sticky; }
.site-header::before {
content: "";
position: absolute;
inset: 0;
z-index: -1;
backdrop-filter: blur(12px);
}
Lesson: when position: fixed misbehaves, walk up the parents and look for transform, filter, backdrop-filter, perspective or contain. One of them is changing the rules.
Applies to: any modern browser; this is how the CSS spec defines containing blocks. Checked October 2026.



