[csswg-drafts] [selectors] Consider exposing "mobileness" as a media query (#7696)

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

== [selectors] Consider exposing "mobileness" as a media query ==
See https://github.com/whatwg/html/issues/8224#issuecomment-1235722036

>> 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

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 5 September 2022 12:22:06 UTC