Is this logic something glfw does by itself as well? Or something added for Emscripten-specific purposes? If this is something custom, perhaps make a note. What happens if glfwCreateWindow is called with width==0 and height==0?