What does Thumb Zones and the First Screen conclude, in numbers, about “The Sticky-Header Tax: Browser Bars, Safe Areas, Stacked Banners and Floating Widgets”?

Answer: The viewport tax must be computed against the visible height. With this chapter's assumed browser-bar heights, a first visit on 390×844 has only 664 pixels to work with and on 360×780 only 628. Layout A's fixed layers on a first visit take 0.319 and 0.338 of the visible height, and while reading still 0.139 and 0.146; at 2.0 times text, the two pinned bars eat 0.277. 100vh hides the button at the foot of the hero behind the browser bars, svh does not; dvh makes the content jump by 86 pixels when the bars collapse. A hide-on-scroll header cuts the space taken while reading to less than half, provided the switching threshold is 24 pixels or more, otherwise the header flickers with every twitch of the finger. A late banner pushed into the flow causes layout shift: a 120-pixel cookie bar inserted at the top scores 0.181 on its own. A chat bubble left in its default position covers 0.197 of the action bar's button. Fixed layers also hide focused controls, which scroll-padding reservations fix.

Scope of the numbers: All brands and figures are invented samples computed by the book's programs; laws on privacy consent and accessibility are described only in general terms and are not legal advice.

中文版

Data table

The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python onlyprinted values that match the answer: 0.139, 0.146, 0.181, 0.277, 0.319, 0.338

390x844 visible 664 expanded / 750 collapsed; bottom inset 34
state fixed px tax exp tax col net exp content px exp corner budget
A first visit212 0.319 0.283 0.319 452 0.022 over
A answered, scrolling92 0.139 0.123 0.139 572 0.022 over
B first visit218 0.328 0.291 0.181 446 0.000 ok
B scrolling down98 0.148 0.131 0.000 566 0.000 ok
B scrolling up146 0.220 0.195 0.072 518 0.000 ok
360x780 visible 628 expanded / 724 collapsed; bottom inset 24
state fixed px tax exp tax col net exp content px exp corner budget
A first visit212 0.338 0.293 0.338 416 0.026 over
A answered, scrolling92 0.146 0.127 0.146 536 0.026 over
B first visit208 0.331 0.287 0.191 420 0.000 ok
B scrolling down88 0.140 0.122 0.000 540 0.000 ok
B scrolling up136 0.217 0.188 0.076 492 0.000 ok
390x844 expanded, as the text setting grows (fixed layers in rem, inset not scaled)
text scale 1.0: A pinned92.0 px, tax 0.139; B up-scroll 146.0 px, tax 0.220
text scale 1.3: A pinned 119.6 px, tax 0.180; B up-scroll 179.6 px, tax 0.270
text scale 1.5: A pinned 138.0 px, tax 0.208; B up-scroll 202.0 px, tax 0.304
text scale 2.0: A pinned 184.0 px, tax 0.277; B up-scroll 258.0 px, tax 0.389
Show the full program
# Chapter 3. p30: The viewport tax of Nightamber's fixed layers once the browser bars are counted.
# Chapter 1 (p10) took the whole screen as the page; here the browser's own bars take their share first.
# Visible page heights are assumed values for this sample (Chapter 6 uses the same expanded values);
# measure yours with window.innerHeight and window.visualViewport.height on the target phones:
#   390x844: 664 px with the browser bars expanded, 750 px with them collapsed
#   360x780: 628 px expanded, 724 px collapsed
# Fixed layers (CSS px at text scale 1.0, sized in rem so they grow with the text setting):
#   layout A (current): promo bar 36 + header 56 pinned; cookie bar 120 on a first visit; chat bubble
#   60 x 60 plus a 16 px margin (a 76 x 76 corner block, not full width)
#   layout B (redesign, Chapter 8): header 48 that hides while scrolling down; action bar 64 plus the
#   bottom inset (34 at 390 wide, 24 at 360); cookie sheet 72 on a first visit
# Tax = height of full-width fixed layers / visible height. Corner = corner block / visible area.
# "net" leaves out the action bar, which carries the price and the add-to-bag button (working pixels).
# Budget proposed in the text: net tax <= 0.20 on a first visit, <= 0.10 while reading (bars expanded,
# text scale 1.0), <= 0.30 at text scale 2.0. Text scale matters for WCAG 2.1 SC 1.4.4 (resize text to
# 200%) and SC 1.4.10 (reflow at 320 CSS px).
import math

VIS = {"390x844": (390, 664, 750, 34), "360x780": (360, 628, 724, 24)}
STATES = [
    ("A first visit", ["promo", "header", "cookie"], 1),
    ("A answered, scrolling", ["promo", "header"], 1),
    ("B first visit", ["headerB", "bar", "sheet"], 0),
    ("B scrolling down", ["bar"], 0),
    ("B scrolling up", ["headerB", "bar"], 0),
]
H = {"promo": 36, "header": 56, "cookie": 120, "headerB": 48, "bar": 64, "sheet": 72}


def fixed(dev, layers, scale=1.0):
    inset = VIS[dev][3]
    return math.fsum(H[k] * scale + (inset if k == "bar" else 0) for k in layers)


if __name__ == "__main__":
    for dev, (w, ex, co, inset) in VIS.items():
        print("   {}  visible {} expanded / {} collapsed; bottom inset {}".format(dev, ex, co, inset))
        print("   state                      fixed px  tax exp  tax col  net exp  content px exp  corner  "
              "budget")
        for name, layers, chat in STATES:
            f = fixed(dev, layers)
            corner = chat * 76 * 76 / (w * ex)
            net = f - fixed(dev, [k for k in layers if k == "bar"])
            cap = 0.20 if "first" in name else 0.10
            print("   {:<26s} {:8.0f} {:8.3f} {:8.3f} {:8.3f} {:15.0f} {:7.3f}  {}".format(
                name, f, f / ex, f / co, net / ex, ex - f, corner, "ok" if net / ex <= cap else "over"))
    print("   390x844 expanded, as the text setting grows (fixed layers in rem, inset not scaled)")
    for s in (1.0, 1.3, 1.5, 2.0):
        a = fixed("390x844", ["promo", "header"], s)
        b = fixed("390x844", ["headerB", "bar"], s)
        line = "     text scale {:.1f}: A pinned {:5.1f} px, tax {:.3f}; B up-scroll {:5.1f} px, tax {:.3f}"
        print(line.format(s, a, a / 664, b, b / 664))

Single source and citation

Fan, Y. (2026). Mobile Thumb-Zone Kinetics, Dark-Luxury Micro-Interactions and Above-the-Fold Visual Retention Engineering (Version 0.1.0), Chapter 3: The Sticky-Header Tax: Browser Bars, Safe Areas, Stacked Banners and Floating Widgets. 5D Library. DOI pending

DOI pending · monograph page goes live after publication · 5DL-B-137 · v0.1.0 · CC-BY-NC-ND-4.0

BibTeX
@book{fan2026137,
  author    = {Fan, Yafu},
  title     = {Mobile Thumb-Zone Kinetics, Dark-Luxury Micro-Interactions and Above-the-Fold Visual Retention Engineering},
  year      = {2026},
  publisher = {5D Library},
  edition   = {0.1.0},
  note      = {DOI pending}
}

Other chapter answers in this book