-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What's the right way to support mobile screens in the UA stylesheet? #8224
Comments
@emilio Emilio, do you have thoughts about this since in the past we had tried to done something similar for |
Mobileness is exposed in Would it be appropriate to switch from "mobileness" to instead use pointer: coarse media query for Also see #8189 |
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.
The problem with that is that it'll match for tablets, and the real context for the question is "small screens". On a tablet, current behavior (in my quick testing) for Edit: after thinking about it for a second, perhaps the context really is "coarse pointers". I.e. the point of the special screen on mobile is that it's hard to pick small options with your finger. Existing browser behavior is to only do that on small screens, but perhaps the discussion really should be about the pointer type? I just know that people (me) get annoyed when a desktop site does something different on a tablet screen, and this may be one of those things.
Interesting issue! I did not know we had some hack to allow |
Indeed. It could be; filed w3c/csswg-drafts#7696.
I tested Safari on iPad and Chrome on Galaxy Tab with BrowserStack, and it's not quite the same as desktop but also not the same as mobile.
|
For some historical context, see #624 which is about a media query that used to be in the spec for the
<dialog>
element. The original purpose was to support mobile screens by "going full-screen" for dialogs on small screen devices.This issue will be coming back as we work to introduce the
<selectmenu>
element. On most browsers, the existing<select>
element goes into a full-screen, mobile-specific mode on small screen devices. This is intuitive and generally helpful for users - it makes selecting an option less tedious on these devices. Since the<selectmenu>
element is fully-developer stylable, we would expect developers to do something similar. But we'd also like to have good default (interoperable, standardized) styles for the<selectmenu>
element. For that purpose, it would seem (to me at least) to make sense to have a screen size media query included in the default styles, which renders the dropdown list in something like a full-screen mode.Since it sounds like the only precedent for this type of UA stylesheet addition was the old
<dialog>
rule, I thought it'd be good to discuss the right way to approach this.@dandclark @domenic @zcorpan @foolip @Hixie @annevk
The text was updated successfully, but these errors were encountered: