I am currently working on a dashboard designed for static display on large monitors or TVs for clients. My main goal is to implement CSS styling, specifically a snap-scroll feature, but only when the display is in 'fullscreen' or 'maximized' mode.
Detecting fullscreen display is simple with this code:
@media all and (display-mode: fullscreen){}
However, determining if the browser has been maximized or stretched to the full height of the screen has proven to be a challenge. The deprecated device-height
in Mozilla, which I considered using along with window.screen.availHeight
in JavaScript to calculate maximum viewing size, seems to be unavailable.