# screen.availTop is where your menu bar is

> screen.availTop is the height of OS chrome at the top of the screen: 25 on most Macs, 0 on Windows. It names a platform before navigator.platform does.

Source: https://mosaicbrowser.com/blog/screen-availtop-menu-bar

## screen.availTop is where your menu bar is

screen.availTop is the height of OS chrome at the top of the screen: 25 on most Macs, 0 on Windows. It names a platform before navigator.platform does.

![25: availTop is where your menu bar is](https://mosaicbrowser.com/covers/screen-availtop-menu-bar.webp)

`screen.availTop` is the number of CSS pixels at the top of the screen that windows are not allowed into. On a Mac that is the menu bar, so it reads 25 on most machines. On Windows the taskbar sits at the bottom by default, so it reads 0 and the taskbar comes off `availHeight` instead. That one integer says which desktop a browser is running on, without `navigator.platform` ever being read.

## What availTop and availLeft measure

The screen a page sees has two rectangles. `width` and `height` are the whole display. The available area is what is left once the operating system has taken its own space: the menu bar, the Dock, a taskbar. `availWidth` and `availHeight` give its size, and `availLeft` and `availTop` give where it starts.

Only the size is standard on `Screen`. The CSSOM View draft defines exactly six attributes there: `availWidth`, `availHeight`, `width`, `height`, `colorDepth` and `pixelDepth`. MDN's page notes that a non-standard `availTop` exists on `Screen` in all browsers, and that the standard version lives on `ScreenDetailed` in the Window Management API, where it equals the screen's top edge "plus the height of any OS UI element drawn at the top of the screen". On a single display that is the whole story: `availTop` is the bar's height.

Open DevTools on the computer in front of you and run:

```
[screen.availLeft, screen.availTop, screen.height - screen.availHeight]

```

Mosaic is a desktop app

Email yourself the link and open it on your computer.

[How it works: Machines that exist](https://mosaicbrowser.com/features/real-fingerprints)

## The numbers by platform

The values below are the ones in our device catalogue, read off real machines.

| Desktop | Where the OS chrome sits | `availTop` | Taken off `availHeight` |
| --- | --- | --- | --- |
| macOS, most Macs | Menu bar at the top | 25 | 25 |
| macOS, MacBook with a notch | Taller menu bar at the top | 38 | 38 |
| Windows, 100% scaling | Taskbar at the bottom | 0 | 40 |
| Windows, 125% and above | Taskbar at the bottom | 0 | 48 |
| Linux, GNOME | Top bar | 27 | 27 |

`availLeft` is 0 on all of them. A Dock moved to the left edge changes it, but that is a choice somebody made about their desktop, not a property of their machine.

So the pair is a platform signal on its own. A browser reporting `availTop: 25` and a taskbar's worth of missing height at the bottom describes no desktop that exists. That is why a Windows profile on a Mac has to get its geometry from the Windows it claims, not from the Mac it runs on.

## Switches nobody was reading

Tesseract Chrome, our engine, sets fingerprint values itself, from launch switches. When we wrote `0103-screen-geometry.patch` we found that the open-source code we had started from declared switches for screen width, height and device scale factor, sent them to every renderer, and then read them nowhere. No accessor called them, so the screen a page saw was always the host's, whatever the profile said.

0103 puts the read in the seven accessors a page actually calls: `Screen::width`, `height`, `colorDepth`, `availLeft`, `availTop`, `availWidth` and `availHeight` each check their switch first. Two details in it matter:

- A missing switch means "leave the real value alone". A spoofed width beside the host's real available height is a contradiction, not a disguise, so each field opts in and the generator sends a coherent set drawn from one real machine.
- `pixelDepth` is not changed. Chromium implements it as a call to `colorDepth`, and changing both would let the two drift apart.

The launcher works the numbers out from the claimed OS: `availLeft` is always 0, and `availTop` is 0 for a Windows claim and the whole reserved height for macOS and Linux, where the bar is at the top. The generator also refuses a Mac or Windows screen whose `availHeight` equals its `height`, because that means no menu bar and no taskbar.

## The window that opened under the menu bar

Getting `availTop` right in the engine exposed a bug in where we put the window. The launcher opened every browser at `--window-position=0,0`, which on macOS is the top-left corner of the screen, under the menu bar. It was reported from inside the app as the browser "goes over the whole macOS bar", and it did, on every launch.

It was also a contradiction a page could read. The profile said the top 25 pixels were unavailable, and `window.screenY` said the window started at 0, above the top of the available area. No real window on a Mac can be there.

The origin is now the larger of two numbers: where this computer's own work area begins, so the window is visible, and the profile's own `availTop`, so the geometry agrees with what the profile claims. The host's half is passed in rather than looked up inside the function, because a function that asks the computer about itself gives the wrong answer as soon as it is describing a different machine.

## What this means for a profile

Screen geometry is one of the values a page reads together, and it has to agree with the rest of the device. How a whole machine is drawn instead of separate fields is in [a fingerprint is a machine](https://mosaicbrowser.com/blog/a-fingerprint-is-a-machine). The other place the platform shows through a frozen string is in [why navigator.platform says MacIntel](https://mosaicbrowser.com/blog/navigator-platform-macintel). Mosaic will draw a Windows profile on a Mac with Windows geometry, as part of [real fingerprints](https://mosaicbrowser.com/features/real-fingerprints), though the strongest match is always the OS your own computer runs; the fonts it cannot change are covered in [can a Mac make Windows browser profiles](https://mosaicbrowser.com/guides/can-a-mac-make-windows-browser-profiles).

## Sources

1. [W3C CSSOM View Module: the Screen interface](https://drafts.csswg.org/cssom-view/), read November 3, 2026
2. [MDN: Screen.availTop](https://developer.mozilla.org/en-US/docs/Web/API/Screen/availTop), read November 3, 2026

## Questions

### What does screen.availTop return on a Mac?

The height of the menu bar in CSS pixels, because the menu bar is at the top of the screen and windows cannot go under it. That is 25 on most Macs and taller on MacBooks with a notch, where our catalogue uses 38.

### Why is screen.availTop 0 on Windows?

Because the Windows taskbar sits at the bottom of the screen by default. The space it takes comes off availHeight instead, 40 CSS pixels at 100% scaling and 48 at 125% and above, and availTop stays 0.

### Is screen.availTop part of a web standard?

Not on the Screen object. CSSOM View defines availWidth, availHeight, width, height, colorDepth and pixelDepth there. MDN notes that every browser has a non-standard availTop on Screen; the standard one is on ScreenDetailed in the Window Management API.

### Can a site tell my platform from availTop?

It can tell where your operating system puts its bars. A top bar of 25 pixels and a bottom taskbar of 40 are two different desktops, so a profile claiming Windows with availTop 25 has contradicted itself before navigator.platform is read.

## Related

[Why navigator.platform says MacIntel on Apple silicon](https://mosaicbrowser.com/blog/navigator-platform-macintel): Every Mac reports navigator.platform as MacIntel, M-series included, because browsers froze it for old code. The chip shows up elsewhere, if a site asks.

[A fingerprint is a machine, not a bag of fields](https://mosaicbrowser.com/blog/a-fingerprint-is-a-machine): Random fingerprint vs real device: random values from separate lists make machines nobody sells. We draw a whole real device, a Mac, a Windows PC or a phone.

[Machines that exist: fingerprints drawn from real hardware](https://mosaicbrowser.com/features/real-fingerprints): Mosaic draws each profile's GPU, screen, CPU, memory and fonts from one real device, so the parts of a fingerprint agree with each other and with the host.

[Can a Mac make Windows browser profiles? Yes, at a measured cost](https://mosaicbrowser.com/guides/can-a-mac-make-windows-browser-profiles): Yes. Mosaic makes Windows profiles on a Mac, drawn for Windows, with a caution: the fonts a page measures still come from the Mac, so macOS matches best.









[A number Chromium rounds, and a generator that did not](https://mosaicbrowser.com/blog/devicememory-rounding): navigator.deviceMemory values on desktop Chrome are 2, 4, 8, 16 or 32, not the spec's 0.25 to 8. Our validator kept the old list and refused its own draws.

[The GPU pin we removed twice and restored twice](https://mosaicbrowser.com/blog/gpu-pin): On a stock Chrome, claiming any Apple chip but the Mac's own read as masked on Pixelscan. We removed that pin twice on a theory; our own engine lifted it.

## Mosaic, on your own computer

The browser this blog is about: its own Chromium, fingerprints from real machines and a proxy IP per profile. Free covers 3 profiles with no card, and Pro is $25 a month for any number of them.

Mosaic is a desktop app

Email yourself the link and open it on your computer.
