Skip to content

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

Open
@KSCooke

Description

@KSCooke

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions