4 ms·
I presume you're talking about maximized windows, but that still does not equal "filling the entire screen", because browsers have their own user interface arou
by kube-system 3y ago
I presume you're talking about maximized windows, but that still does not equal "filling the entire screen", because browsers have their own user interface around the viewport.
Go maximize your browser and enter this into your dev tools:
console.log(`${window.innerWidth}x${window.innerHeight}`)
Does that equal your screen resolution?
- madeofpalk 3y agoI like this because opening the dev tools has a high chance of changing innerHeight :)
- kube-system 3y agoAnd even if you open dev tools in another window, many people run browsers that are configured to display other controls... like tabs, or an address bar.
- ghusto 3y agoI did differentiate here ;) and even mentioned that I "sometimes even [see] the entire screen (in fullscreen mode on MacOS) [being used]"
- kube-system 3y agoFull-screen mode on MacOS in Chrome, Safari, and Firefox also show tabs and an address bar by default. Yes, full-screen mode hides the dock and the menu bar, but it still does not make the viewport equal to the screen resolution.