Skip to content
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

[mediaqueries-5] Detecting "private" hover #9085

Closed
grorg opened this issue Jul 18, 2023 · 4 comments
Closed

[mediaqueries-5] Detecting "private" hover #9085

grorg opened this issue Jul 18, 2023 · 4 comments
Labels
Closed as Retracted When the person who raised the issue thinks that there's no issue after all. mediaqueries-5

Comments

@grorg
Copy link
Contributor

grorg commented Jul 18, 2023

Media Queries has a feature for detecting hover capabilities of a device. It distinguishes between none (no hover at all) and hover (some hover!).

Apple's visionOS has an interaction model that does not give the page any information on the position of the pointer, which is derived from the user's gaze. While this would seem to fall into the none category, we have found it important to give the user some feedback on what they are about to interact with. This is implemented with an effect that is rendered by the browser engine and not detectable from the page.

In order to do this, the browser must infer information from the content. In particular what areas of the page are able to be interacted with. We've found through experience that it often requires some tweaks to the design of the page. Here is a video describing the approach and solutions: https://developer.apple.com/videos/play/wwdc2023-10279

For this reason we think we need another value for this media query. We're suggesting private, which is a pretty good description of what is happening: the browser is showing a hover effect that is private - only seen by the user, not the page.

Of course, we'd love to hear other suggestions!

@astearns astearns added this to Unslotted in Cupertino F2F Agenda Jul 18, 2023
@grorg
Copy link
Contributor Author

grorg commented Jul 18, 2023

The pointer on this device is effectively transient. To the page it only exists when it delivers clicks or touches. This isn't the same as a finger though - we found that you still needed some feedback on where you are looking.

@grorg
Copy link
Contributor Author

grorg commented Jul 31, 2023

One flaw here is that it doesn't really tell a developer what they should do about the situation. As I said, we've found instances where a page does want to slightly change its design, but obviously that shouldn't be specific to an Apple device.

Maybe this is a bit more like the pointer query, which has a value of coarse.

@fantasai
Copy link
Collaborator

Maybe this is a bit more like the pointer query, which has a value of coarse.

Ok, I feel like I have to ask: what's the functional difference (for Web authors) wrt hover: private vs pointer: coarse? :)

@fantasai fantasai added the Closed as Retracted When the person who raised the issue thinks that there's no issue after all. label Dec 12, 2023
@fantasai
Copy link
Collaborator

Closing per Dean's instructions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Closed as Retracted When the person who raised the issue thinks that there's no issue after all. mediaqueries-5
Projects
No open projects
Development

No branches or pull requests

2 participants