Resize mode does not work with HTML export

I am trying to have my game show up under a certain fixed resolution when exporting to HTML. However, the HTML canvas ignores this setting and automatically stretches to fit the window.