Window outer and inner geometry
Window geometry is read from four properties in one go: `window.outerWidth` and `outerHeight` for the frame the window manager drew, `innerWidth` and `innerHeight` for the viewport inside it. Their value to a consistency audit is not their size but their containment — a viewport sits inside a window, a window sits inside a screen, and those relationships are arithmetic that does not depend on knowing anything about the machine.
What this value is, before anyone changes it
The outer box is the whole browser window including its own chrome, reported by the window manager. The inner box is the viewport the document is laid out in. The difference between them is the browser's toolbars and borders, which is why the difference is small on a maximised desktop window and can be zero in full-screen or kiosk mode.
The collector refuses to submit a probe from inside a frame, so these are always top-level values or there is no probe at all. That refusal is part of the collection contract rather than a property of the signal, and it is what makes the containment arithmetic meaningful: an iframe legitimately has a tiny inner box inside a large window, and a rule that read it would fire on every honest embed.
Read procedure
In this order. The first call that answers wins; the sheet records which one did.
- window.outerWidth, window.outerHeight
- window.innerWidth, window.innerHeight
Fallback
The collector refuses to submit from inside a frame, so these are always top-level values or the probe is suppressed entirely.
When nothing answers, the signal is recorded as not read and its entire row and column are drawn with hidden lines. That is a different fact from consistency and the sheet never collapses the two: a rule that could not run has not passed.
Why two honest browsers disagree about it
Honest variation comes from modes and from mobile chrome. Full-screen and kiosk make the inner and outer boxes equal. Page zoom shifts the inner box in ways that round awkwardly against the outer. Several mobile browsers report an inner height larger than the outer while their toolbars are collapsed, which is the reason SCR-WIN-02 is weighted 2 rather than treated as an impossibility.
Zero-sized windows are the other honest case: they appear transiently during window creation and in some embedded webviews, alongside the headless configurations that report them because there is no window manager to ask. SCR-WIN-03 is weighted 3 for that reason.
What a contradiction involving Window Geom means
Three rules read this axis, all of them against screen geometry, and together they form a containment chain: screen contains window contains viewport. SCR-WIN-01 tests the outer link at weight 4, SCR-WIN-02 the inner link at weight 2, and SCR-WIN-03 the degenerate case of a display with no window on it at weight 3.
A mark on the outer link almost always means the screen was rewritten rather than the window, because window metrics are rarely the thing a profile bothers to set. That is a hypothesis rather than a finding, which is exactly what declaring a datum is for.
How it is spoofed, and what the spoof leaves behind
Window geometry is the value most often left alone. A profile that rounds the screen to a common resolution and does not touch the window frequently ends up reporting a window larger than the display it is supposedly on — arithmetic that requires no knowledge of the machine to reject.
The opposite residue shows up in automation. A headless configuration with no window manager reports zeroes for the outer box while `screen` still answers with real dimensions, which is a display that exists with nothing drawn on it.
Documented misreports
- Left untouched while `screen` is spoofed, producing a window larger than the screen containing it.
- Reported as 0×0 by some headless configurations.
What a truthful reading looks like
An outer box that fits inside the screen, and an inner box that fits inside the outer box.
| Mark | Rule | Against | Predicate |
|---|---|---|---|
|
SCR-WIN-01
Window larger than its screen |
SCREEN GEOM | window.outerWidth and outerHeight do not exceed screen.width and screen.height. | |
|
SCR-WIN-02
Viewport larger than its window |
SCREEN GEOM | window.innerWidth and innerHeight do not exceed outerWidth and outerHeight. | |
|
SCR-WIN-03
A screen with no window on it |
SCREEN GEOM | A non-zero screen implies a non-zero window. |
What this axis is dimensioned against
WINDOW GEOM is paired with 1 other signal by the registry, and the pairing is where the meaning is: on its own this reading is a value, and a value cannot contradict anything. The heaviest rule touching it is SCR-WIN-01 at weight 4 — window larger than its screen.
- Screen geometry and pixel ratio — observed, read from screen.width, screen.height.
Where this sits on the sheet
Row and column S12 of the matrix. Clicking that label — or pressing D with it focused — declares this signal as the datum, which means assume this reading is truthful and re-resolve every deviation on the sheet against that assumption. If declaring it leaves few deviations open, this signal is a cheap explanation for what the sheet found. That is a hypothesis you chose, not a fact the sheet established — what a datum is.
Nothing here is a score. S12 is an observed signal in the geometry group, and the most the registry will say about it is that one of its 3 rules found two readings that cannot both be true — the weighting scale states what evidence each weight is allowed to claim before a rule may claim it. Run the audit to see which of those rules can be evaluated on your browser at all, or read every signal in the index.
- What is the difference between outerWidth and innerWidth?
- `outerWidth` is the whole browser window including its chrome; `innerWidth` is the viewport the page is laid out in. The difference is the browser's own toolbars and borders, and it goes to zero in full-screen and kiosk modes.
- Can a window really be larger than its screen?
- Honestly, in one case: a window straddling two displays in some multi-monitor configurations reports dimensions larger than the primary screen. That is why SCR-WIN-01 is weighted 4 rather than 5.
- Why does the audit refuse to run inside an iframe?
- Because a framed document legitimately has a small viewport inside a large window, and the containment arithmetic would be meaningless. The refusal is part of the collection contract — what the collector reads and when.
- What does a zero-sized window mean?
- That no window manager answered. Several headless configurations report zeroes for the outer box while the screen still answers, and so do some embedded webviews and the brief moment during window creation — SCR-WIN-03 records it at weight 3.
Preventing this class of mark
Nothing about the window box can be fixed before launch: it is produced by the window manager and the zoom level at the moment of measurement. The honest conclusion this sheet draws is that geometry has to be coherent by construction rather than by correction — and the pre-launch gate Donut Browser ships is explicit about covering the proxy geography, timezone and language cluster rather than pretending to cover this one.
Donut Browser is AGPL-3.0 and desktop only, for macOS, Windows and Linux; there is no mobile build and there are no detection-test results anywhere in its repository, so none are quoted here. Download Donut Browser · what a pre-launch consistency gate does and does not cover.