26 ms·
Does the viewport reflect reality on desktop when e.g. http login controls cover part of the page, or another window is covering part of it?
by bamfly 3y ago
Does the viewport reflect reality on desktop when e.g. http login controls cover part of the page, or another window is covering part of it?
- danielvaughn 3y agoYep, and it always has. It's super reliable on desktop.
- bamfly 3y agoLike, you drag a window over your browser, and the viewport values change? I'd not have expected that, and I don't think I've ever noticed that behavior. How does it account for all of those sorts of things (browser-provided login prompts, or browser settings windows, or certificate-info pop-downs, or non-browser windows being dragged on top of part of the browser window) not necessarily resulting in a viewable area describable as a rectangle?
- danielvaughn 3y agoSorry I should have been more specific. The viewport is merely the window of the browser itself where the website is rendered. The calculations given to devs reflects that area, and it does change if the user resizes their browser. But it doesn’t change if something is displayed on top. It’s true that some temporary browser elements will display on top of the viewport, but these are things like alerts where it makes sense. To have a permanent fixture that takes up space and then have the viewport lie to devs about the actual dimensions is really frustrating.