[csswg-drafts] [css-media-queries] Orientation does not respect soft keyboard on mobile devices (#3587)

KSCooke has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-media-queries] Orientation does not respect soft keyboard on mobile devices ==
https://www.w3.org/TR/css3-mediaqueries/#orientation
https://drafts.csswg.org/mediaqueries-3/#orientation

When using `@media screen and (orientation: portrait)` and `@media screen and (orientation: landscape)` on a mobile device in portrait mode with the soft keyboard open the orientation is calculated as `landscape` and not `portrait`. 

I think it would be better if orientation calculation could be based on `device-height > device-width` so that it would work properly in a mobile environment. If that is not possible then instead to create a `device-orientation` that could work off of `device-height > device-width`.
 

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3587 using your GitHub account

Received on Friday, 1 February 2019 19:59:31 UTC