Re: [csswg-drafts] [cssom-view] should screen.width and screen.height reflect orientation? (#5204)

I went ahead and tested this on Firefox for Android a well. The behavior is mostly like Chrome, in that width and height change when rotating. However, the numbers seem to exclude some part of the UI, as the dimensions go from 396×820 to 836×380 on the device I used, which was a Pixel 4 on BrowserStack. So it seems like 16 pixels of vertical space are deducted, perhaps for Android's top bar, I'm not sure.

@annevk do you know who the right person at Mozilla to have an opinion on this would be?

@smfr since it appears that Chrome and Firefox agree on that the dimensions should swap when rotating, do you think it would be reasonable to spec that? Or is there an upside to the Safari behavior that's not obvious at first glance?

I'm not sure if there's reason to suspect that the change in either direction is riskier from a compat perspective, if anyone does please speak up :)

-- 
GitHub Notification of comment by foolip
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5204#issuecomment-663701883 using your GitHub account

Received on Friday, 24 July 2020 19:41:13 UTC