It won't work if someone plays your game and their browser has a bigger menu bar, or other things that affect their window-size, that's why I gave the link to the different screensizes tutorial.
Develop games in your browser. Powerful, performant & highly capable.