Menu

Your Bug Report Says "iPhone". The Screen Is 448 by 364.
📰

Your Bug Report Says "iPhone". The Screen Is 448 by 364.

DEV Community: css·Vladimir Elchinov·19 days ago
#FN4hyOZM
#devtocss#devto#dev#device#homeview
Long article (662 words) — no AI summary yet.
Reading 0:00
15s threshold

Last Friday Safari arrived on a new device: Apple HomeView, which has a square 7-inch display that people mostly use with their voice. WebKit's announcement includes a line that will produce a particular kind of bug report for the next year:

Safari on HomeView also reports an iOS user agent.

So the report will say "iOS Safari". You will pick up an iPhone, open the page, and it will be fine. Not because the bug is not real, but because the report described the wrong thing. It classified the device, and the device class is the one fact that does not decide how a page renders.

A user agent is a claim. A viewport is a measurement.

Everything about how your layout behaves is decided by a handful of numbers the browser can measure directly: the width and height of the viewport, whether the primary pointer is precise, whether it can hover. The user agent is a string that a vendor chose, and on HomeView it says iOS.

WebKit is specific about what that hides.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.