Skip to content

Commit 0990e78

Browse files
authored
Add 'motion-preference' media feature
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)
1 parent fe22505 commit 0990e78

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

mediaqueries/Overview.bs

+47
Original file line numberDiff line numberDiff line change
@@ -1806,6 +1806,53 @@ All Available Interaction Capabilities: the 'any-pointer' and 'any-hover' featur
18061806
or to hide them altogether to reduce visual clutter if ''(any-pointer: fine)'' is false.
18071807
</div>
18081808

1809+
<!--
1810+
██ ██ ██████ ████████ ████████ ████████ ████████ ████████ ████████ ██████
1811+
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
1812+
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
1813+
██ ██ ██████ ██████ ████████ ████████ ████████ ██████ ██████ ██████
1814+
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
1815+
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
1816+
███████ ██████ ████████ ██ ██ ██ ██ ██ ████████ ██ ██████
1817+
-->
1818+
1819+
<h2 id='mf-user-preferences'>
1820+
User Preference Media Features</h2>
1821+
1822+
<h3 id="motion-preference">
1823+
Detecting the preference for less or no motion on the page: the 'motion-preference' feature</h3>
1824+
1825+
<pre class='descdef mq'>
1826+
Name: motion-preference
1827+
Value: default | reduce | disable
1828+
For: @media
1829+
Type: discrete
1830+
</pre>
1831+
1832+
The 'motion-preference' media feature is used to detect if the user
1833+
has requested the system minimize or disable the amount of animation
1834+
or motion it uses.
1835+
1836+
<dl dfn-type=value dfn-for="@media/motion-preference">
1837+
<dt><dfn>default</dfn>
1838+
<dd>
1839+
Indicates that the user has made no preference known
1840+
to the system. This keyword value evaluates as true
1841+
in the <a>boolean context</a>.
1842+
1843+
<dt><dfn>reduce</dfn>
1844+
<dd>
1845+
Indicates that user has notified the system that they
1846+
prefer an interface that minimizes the amount of movement
1847+
or animation, preferably to the point where all non-essential
1848+
movement is removed.
1849+
<dd>
1850+
Indicates that user has notified the system that they
1851+
prefer an interface that disables movement or animation,
1852+
preferably to the point where all movement is removed.
1853+
</dl>
1854+
1855+
18091856
<!--
18101857
██████ ██████ ████████ ████ ████████ ████████ ████ ██ ██ ██████
18111858
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ███ ██ ██ ██

0 commit comments

Comments
 (0)