Skip to content

[mediaqueries-4] add example of 'pointer: none' to table, add note about how UA could determine "primary" input #739

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

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 17 additions & 5 deletions mediaqueries/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1571,23 +1571,23 @@ Interaction Media Features</h2>
Typical examples of devices matching combinations of 'pointer' and 'hover':

<table class=data>
<col>
<col></col>
<col></col>
<thead>
<tr>
<td>
<th>''pointer: none''
<th>''pointer: coarse''
<th>''pointer: fine''
<tbody>
<tr>
<th scope=row>''hover: none''
<td>keyboard-only controls, sequential/spatial (d-pad) focus navigation
<td>smartphones, touch screens
<td>stylus-based screens (Cintiq, Wacom, etc)
<td>basic stylus digitizers (Cintiq, Wacom, etc)
<tr>
<th scope=row>''hover: hover''
<td>
<td>Nintendo Wii controller, Kinect
<td>mouse, touch pad
<td>mouse, touch pad, advanced stylus digitizers (Surface, Samsung Note, Wacom Intuos Pro, etc)
</table>
<style>
#pointer-hover-table { margin: 1em auto; text-align: center; border-collapse: collapse; max-width: 40em; }
Expand All @@ -1597,6 +1597,18 @@ Interaction Media Features</h2>
</style>
</div>

The 'pointer' and 'hover' features relate to the characteristics of the “primary” input mechanism,
while 'any-pointer' and 'any-hover' can be used to query the properties of all potentially available input mechanisms.

Note: While this specification does not define how User Agents should decide what the “primary” input is,
the expectation is that User Agents should make this determination
by combining knowledge about the device/environment they are running on,
the number and type of input mechanisms available,
and a notion of which of these inputs is generally and/or currently being used.
User Agents may also decide to dynamically change what type of input is deemed to be primary,
in response to changes in the user environment
or in the way the user is interacting with the UA.

<h3 id="pointer">
Pointing Device Quality: the 'pointer' feature</h3>

Expand Down