@@ -208,7 +208,9 @@ <h2 class="no-num no-toc" id=contents>Table of contents</h2>
208208
209209 < li > < a href ="#script "> < span class =secno > 4.14. </ span > script</ a >
210210
211- < li > < a href ="#hover "> < span class =secno > 4.15. </ span > hover</ a >
211+ < li > < a href ="#pointer "> < span class =secno > 4.15. </ span > pointer</ a >
212+
213+ < li > < a href ="#hover "> < span class =secno > 4.16. </ span > hover</ a >
212214 </ ul >
213215
214216 < li > < a href ="#values "> < span class =secno > 5. </ span > Values</ a >
@@ -1065,7 +1067,68 @@ <h3 id=script><span class=secno>4.14. </span>script</h3>
10651067 < p > Only 0 and 1 are valid values. (This includes -0.) Thus everything else
10661068 creates a malformed media query.
10671069
1068- < h3 id =hover > < span class =secno > 4.15. </ span > hover</ h3 >
1070+ < h3 id =pointer > < span class =secno > 4.15. </ span > pointer</ h3 >
1071+
1072+ < div class =media-feature > < span class =label > Value:</ span > none | coarse |
1073+ fine< br >
1074+ < span class =label > Applies to:</ span > visual and tactile media types< br >
1075+ < span class =label > Accepts min/max prefixes:</ span > no< br >
1076+ </ div >
1077+
1078+ < p > The ‘< code class =css > pointer</ code > ’ media feature is used to query
1079+ about the presence and accuracy of a pointing device such as a mouse. If a
1080+ device has multiple input mechanisms, it is recommended that the UA
1081+ reports the characteristics of the pointing device of the primary input
1082+ mechanism. It takes the following values:
1083+
1084+ < dl >
1085+ < dt > < dfn id =none title ="pointer:none "> ‘< code
1086+ class =css > none</ code > ’</ dfn >
1087+
1088+ < dd > The input mechanism of the device does not include a pointing device.
1089+
1090+ < dt > < dfn id =coarse title ="pointer:coarse "> ‘< code
1091+ class =css > coarse</ code > ’</ dfn >
1092+
1093+ < dd > The input mechanism of the device includes a pointing device of
1094+ limited accuracy.
1095+
1096+ < dt > < dfn id =fine title ="pointer:fine "> ‘< code
1097+ class =css > fine</ code > ’</ dfn >
1098+
1099+ < dd > The input mechanism of the device includes an accurate pointing
1100+ device.
1101+ </ dl >
1102+
1103+ < p > Both ‘< code class =css > coarse</ code > ’ and ‘< code
1104+ class =css > fine</ code > ’ indicate the presence of a pointing device, but
1105+ differ in accuracy. A pointing device with which it would be difficult or
1106+ impossible to reliably pick one of several small adjacent targets would
1107+ qualify as ‘< code class =css > coarse</ code > ’.
1108+
1109+ < p class =note > Typical examples of a ‘< code class =css > fine</ code > ’
1110+ pointing system are a mouse, a track-pad or a stylus-based touch screen.
1111+ Finger-based touch screens would qualify as ‘< code
1112+ class =css > coarse</ code > ’.
1113+
1114+ < p > For accessibility reasons, even on devices whose pointing device can be
1115+ described as ‘< code class =css > fine</ code > ’, the UA may give a value of
1116+ ‘< code class =css > coarse</ code > ’ or ‘< code class =css > none</ code > ’
1117+ to this media query, to indicate that the user has difficulties
1118+ manipulating the input device accurately or at all.
1119+
1120+ < div class =example >
1121+ < pre > < code > /* Make radio buttons and check boxes larger if we have an inaccurate pointing device */
1122+ @media (pointer:coarse) {
1123+ input[type="checkbox"], input[type="radio"] {
1124+ min-width:30px;
1125+ min-height:40px;
1126+ background:transparent;
1127+ }
1128+ }</ code > </ pre >
1129+ </ div >
1130+
1131+ < h3 id =hover > < span class =secno > 4.16. </ span > hover</ h3 >
10691132
10701133 < div class =media-feature > < span class =label > Value:</ span >
10711134 <integer>< br >
@@ -1142,9 +1205,6 @@ <h3 id=changes-2012><span class=secno>7.1. </span>Changes Since the Media
11421205 2012 Proposed Recomendation of Media Queries Level 3</ a > :
11431206
11441207 < ul >
1145- < li > The < a href ="#script "> ‘< code class =css > script</ code > ’ media
1146- feature</ a > was added.
1147-
11481208 < li > For a media feature < var > feature</ var > ,
11491209 < code > (< var > feature</ var > )</ code > will evaluate to true if
11501210 < code > (< var > feature</ var > :< var > x</ var > )</ code > will evaluate to true for
@@ -1153,6 +1213,12 @@ <h3 id=changes-2012><span class=secno>7.1. </span>Changes Since the Media
11531213 < code > 0em</ code > , etc.)< ins > or the keyword ‘< code
11541214 class =property > none</ code > ’</ ins > .
11551215
1216+ < li > The < a href ="#script "> ‘< code class =css > script</ code > ’ media
1217+ feature</ a > was added.
1218+
1219+ < li > The < a href ="#pointer "> ‘< code class =css > pointer</ code > ’ media
1220+ feature</ a > was added.
1221+
11561222 < li > The < a href ="#hover "> ‘< code class =css > hover</ code > ’ media
11571223 feature</ a > was added.
11581224 </ ul >
0 commit comments