Dev.to WebDev 🛠 Dev 👁 0 📖 2 min read

What a Browser Can (and Cannot) Tell You About Your Display

When a monitor or laptop panel arrives, the first 30 minutes decide whether you keep it. Returns get harder after that, and "it feels a bit off" is not a warranty argument. Here is what you can actually check from a nor

When a monitor or laptop panel arrives, the first 30 minutes decide whether you keep it. Returns get harder after that, and "it feels a bit off" is not a warranty argument.

Here is what you can actually check from a normal browser tab, and where the limits are.

What the browser knows

Three things are reliable across Chrome, Firefox and Safari:

  • Viewport and reported resolution — screen.width/screen.height and window.devicePixelRatio tell you what the OS reports and whether the page is being scaled.
  • Refresh timing — requestAnimationFrame gives you frame deltas. Averaging them over a few seconds is a decent estimate of the effective refresh rate, and it catches the classic "144 Hz monitor still running at 60 Hz" misconfiguration.
  • Full-screen color fields — a div with a solid background is a perfectly good test pattern. Black reveals stuck pixels, white and greys reveal uniformity and dirt, saturated RGB reveals subpixel faults.

That is enough for a genuinely useful inspection routine: dead pixel sweep, uniformity check, backlight bleed check in a dark room, and a refresh/ghosting sanity pass.

What it cannot do

Be honest about this part:

  • The browser cannot measure luminance, contrast ratio, or color accuracy. You need a colorimeter for that. Anything claiming otherwise from JavaScript is guessing.
  • It cannot detect panel type. You can infer OLED from behavior at your own risk, but there is no API that answers "is this OLED".
  • Camera-based pixel checks are unreliable: the phone camera's own demosaic, compression and focus blur will invent or hide defects.
  • It cannot see pixels outside the rendered viewport or below the OS compositor, so a full-screen sweep needs actual fullscreen mode, not a maximized window.

The checks worth running in order

  1. Pure black, fullscreen, dark room. Look for dots that stay lit. Also note the corners: uniform glow is backlight bleed, a bright hot spot is a defect.
  2. Pure white and 50% grey. Vertical bands, dirty-screen-effect patches, and uneven color temperature show up here first.
  3. Red, green, blue fields. A subpixel stuck on one channel is invisible on white but obvious here.
  4. Gradient ramp. Banding on an 8-bit panel is normal in steps; posterized blobs in a photo are not.
  5. Moving object test. A box sliding across the screen at a known speed makes ghosting and overdrive artifacts visible, and pairs with the frame-timing measurement above.

I ended up building Display Checkup because doing this by hand across five tools was tedious — it wires the color fields, the refresh measurement and a guided inspection flow into one page and exports the observations as a local PDF, which is much easier to attach to a return request than a description.

Take-away for front-end folks

If you ship UI, you are testing on displays you did not validate. A two-minute panel check on the machine you develop on will save you from chasing a "CSS gradient bug" that is actually a banding-limited panel, or a "janky animation" that is a monitor stuck at 60 Hz.

The tooling is all native browser APIs — no extensions, no drivers. Worth keeping in your diagnostics folder next to about:gpu.

📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.