You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(such as <aclass="css" data-link-type="maybe" href="https://drafts.csswg.org/css-conditional-3/#at-ruledef-supports" id="ref-for-at-ruledef-supports">@supports</a> in CSS).</p>
1284
1288
<p>In some cases, it may <strong>not</strong> be appropriate to allow feature detection.
1285
1289
Whether the feature should be detectable or not
1286
-
should be based on the <ahref="#priority-of-constituencies">user need</a> for the feature:
1287
-
if there is a user need or design principle which would fail
1290
+
should be based on the <ahref="#priority-of-constituencies">user need</a> for the feature.
1291
+
If there is a user need or design principle which would fail
1288
1292
if feature detection were available for the feature,
1289
1293
then you should not support feature detection.</p>
1294
+
<p>Detecting the availability of a feature does not imply
1295
+
detecting whether <ahref="#consent">consent</a> to use the feature
1296
+
has been granted.
1297
+
Generally, detecting whether the feature is implemented
1298
+
can be done separately from determining whether use of the feature has been authorized.
1299
+
In some cases, it might be necessary to disable feature detection
1300
+
in order to enable denying requests to use the feature.</p>
1290
1301
<p>Also, if a feature is generally not exposed to developers,
1291
1302
it is not appropriate to support feature detection.
<p><ahref="#do-not-expose-use-of-assistive-tech">§ 2.9 Don’t reveal that assistive technologies are being used</a></p>
1303
1314
<lidata-md>
1304
1315
<p><ahref="#secure-context">§ 2.6 Consider limiting new features to secure contexts</a></p>
1316
+
<lidata-md>
1317
+
<p><ahref="#consent">§ 1.4 Ask users for meaningful consent</a></p>
1305
1318
</ul>
1306
1319
<h3class="heading settled" data-level="2.6" id="secure-context"><spanclass="secno">2.6. </span><spanclass="content">Consider limiting new features to secure contexts</span><aclass="self-link" href="#secure-context"></a></h3>
0 commit comments