Classic Windows gutter or non-Windows operating system
Standard Windows desktops normally measure 15–17 px for vertical scrollbar gutters, while macOS, Linux, iOS, and touch devices are automatically excluded from the Windows check.
BotRefund measures physical CSS scrollbar gutter width off-screen to flag desktop sessions claiming Windows while rendering zero-pixel overlay scrollbars.
A brief layout probe inserts an off-screen 100 px-wide scrollable container (overflow: scroll) wrapping a full-width inner element, then subtracts the inner offsetWidth from the outer container's offsetWidth to measure the physical scrollbar track width.
On non-touch desktop sessions whose User-Agent claims Windows, the check flags a platform mismatch when the measured scrollbar width equals 0 px. Non-Windows platforms (macOS, Linux, iOS, Android) and touch devices are excluded.
Linux headless containers and macOS overlay scrollbars default to 0 px scrollbar tracks, whereas classic Windows desktop browsers reserve roughly 15–17 px for vertical scrollbars. An automation container running on Linux while spoofing a Windows User-Agent often leaks a zero-pixel gutter.
However, modern Windows 11 overlay-scrollbar preferences and Microsoft Edge minimal-scrollbar flags can legitimately yield 0 px gutters on genuine Windows PCs. Because of that real-world variation, this check serves strictly as a supporting cue that is ignored whenever natural human interaction occurs.
Standard Windows desktops normally measure 15–17 px for vertical scrollbar gutters, while macOS, Linux, iOS, and touch devices are automatically excluded from the Windows check.
A non-touch session claiming Windows measures 0 px of scrollbar width, suggesting a Linux headless environment spoofing Windows—or a Windows 11 overlay setting.
Forensic significance: Supporting platform-geometry cue for non-touch Windows desktop traffic; disregarded when genuine human interaction is verified to protect Windows 11 overlay users.