Curiously, I have noticed that window.outerWidth
returns a larger value at Stackoverflow.com compared to other websites in my browser. This behavior seems to be unique to Firefox and Stackoverflow. But shouldn't it be consistent across all websites?
According to MDN Web Docs:
The Window.outerWidth read-only property represents the width of the entire browser window including sidebars (if expanded), window chrome, and resizing borders/handles.
Example of outerWidth values when in fullscreen:
- Stackoverflow: 2070
- Discord.com and the others in my tabs: 1863
As of now, I have not encountered any other website with a similar discrepancy in outerWidth.
console.log( window.outerWidth )
Steps to reproduce this behavior:
- Visit stackoverflow.com
- Open Developer Tools / Console
- Type
window.outerWitdh
- Visit google.com or another site
- Type
window.outerWitdh
in the console
In Firefox 95 on Ubuntu 18.04 LTS, these two values differ, with Stackoverflow showing a larger value.