Skip to content

Commit

Permalink
Add 'prefers-motion' media feature
Browse files Browse the repository at this point in the history
Implements Issue: w3c#442
Alternative to w3c#586

Having a good wording of the feature also gets around default value evaluating to true instead of false. Ref: w3c#586 (comment)
  • Loading branch information
inoas committed Dec 6, 2016
1 parent 39f3ff5 commit 6bfdf00
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions mediaqueries/Overview.bs
Expand Up @@ -1806,6 +1806,53 @@ All Available Interaction Capabilities: the 'any-pointer' and 'any-hover' featur
or to hide them altogether to reduce visual clutter if ''(any-pointer: fine)'' is false.
</div>

<!--
██ ██ ██████ ████████ ████████ ████████ ████████ ████████ ████████ ██████
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
██ ██ ██████ ██████ ████████ ████████ ████████ ██████ ██████ ██████
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
███████ ██████ ████████ ██ ██ ██ ██ ██ ████████ ██ ██████
-->

<h2 id='mf-user-preferences'>
User Preference Media Features</h2>

<h3 id="prefers-motion">
Detecting the preference for less or no motion on the page: the 'prefers-motion' feature</h3>

<pre class='descdef mq'>
Name: prefers-motion
Value: default | reduced | disabled
For: @media
Type: discrete
</pre>

The 'prefers-motion' media feature is used to detect if the user
has requested the system minimize or disable the amount of animation
or motion it uses.

<dl dfn-type=value dfn-for="@media/prefers-motion">
<dt><dfn>default</dfn>
<dd>
Indicates that the user has made no preference known
to the system. This keyword value evaluates as true
in the <a>boolean context</a>.

<dt><dfn>reduced</dfn>
<dd>
Indicates that user has notified the system that they
prefer an interface that minimizes the amount of movement
or animation, preferably to the point where all non-essential
movement is removed.
<dt><dfn>disabled</dfn>
<dd>
Indicates that user has notified the system that they
prefer an interface that disables movement or animation,
preferably to the point where all movement is removed.
</dl>

<!--
██████ ██████ ████████ ████ ████████ ████████ ████ ██ ██ ██████
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ███ ██ ██ ██
Expand Down

0 comments on commit 6bfdf00

Please sign in to comment.