Skip to content

[mediaqueries] Consider exposing "mobileness" as a media query #7696

@zcorpan

Description

@zcorpan

See whatwg/html#8224 (comment)

Mobileness is exposed in navigator.userAgentData.mobile: https://wicg.github.io/ua-client-hints/#getters

Right, but that's not exposed as a media query, right? Perhaps the best solution would be to expose mobileness in a media query? I'm sure there's some context for why that's not already there, but I don't know what it is.

Has this been considered?

The definition in the Client Hints spec seems a bit vague to me, but I believe most browsers have an internal mobileness concept which affects rendering of some things, in particular <select> and <select multiple>.

Maybe browsers should do something else like key off of viewport size and pointer MQ?

cc @mfreed7

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions