Open
Description
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
.