BrowserLeaksUSBrowserLeaksUS

CSS Media Queries

Brute-force media query detection reveals device characteristics

Reading this report

How to read the media query report

01

Yes means the query matched this window

Each row is a CSS media query evaluated with matchMedia. Yes means it matches the current environment. No means it does not. The query text is on the right. Preferences cover color scheme, reduced motion, reduced transparency, contrast, forced colors, and inverted colors. Display covers color gamut and HDR. Input covers pointer precision and hover. Type and the later groups cover screen features such as orientation and resolution. Nothing here is a permission. The page is reading what CSS already knows.

Preferences are the rows most people recognize. Prefers Dark Mode and Prefers Light Mode should not both be Yes. Prefers Reduced Motion Yes means animations should stay quiet, which is an accessibility setting and also a bit of entropy. A high-contrast or forced-colors Yes is uncommon and therefore more identifying. Display gamut tells a site whether the screen can show P3 or only sRGB. HDR Yes is still unusual on desktop panels.

02

Pointer, hover, and consistency

Input is the consistency check. A fine pointer and hover means a mouse or trackpad. A coarse pointer and no hover means a finger. Any-pointer and any-hover include every attached device, so a touchscreen laptop can be coarse and fine at once. A User-Agent that claims a phone while this page shows a fine pointer and hover is the same class of contradiction the fingerprint engine flags elsewhere.

These values follow the window. Snap a narrow window, change the theme, or move the browser to another monitor and reload. Resolution and color gamut can change with the monitor. Use JavaScript Info for the pixel dimensions these queries are approximating, and Features Detection for whether the underlying APIs exist at all. Media queries describe the current presentation. They are not the font list and they are not the GPU name.