W3C home > Mailing lists > Public > public-css-archive@w3.org > February 2019

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

From: Kevin Cooke via GitHub <sysbot+gh@w3.org>
Date: Fri, 01 Feb 2019 19:59:28 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-405852128-1549051167-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:43 UTC