I'm trying to use StageSizeScaleMode on html5 (html5 from OpenFL), and it work fine when there is no zoom, the game appear correctly in portrait and landscape. But if try to use zoom (with the default template, setting zoom to -1), the game appears incorrectly, with different sizes when the game starts on portrait or landscape. If the game starts in portrait, the game appears bigger than the screen, and if the game starts in landscape, the game appears smaller than the screen.
I'm using the default template with four blocks in each edge of the screen. in update I detected if the orientation changed (checking with FlxG.width < FlxG.height for portrait, and the opposite for landscape), and if the orientation is changed, I reset the blocks position to stay in the edges. As I said, if there is no zoom, the blocks stay in the right position in any orientation, but with zoom they appear with half the size out of the screen, or in a area smaller than the screen.
html5 informs different sizes of the screen when is in portrait or landscape, and this is a problem for scaling when the game starts in the wrong orientation.