Skip to content

Commit 32b611b

Browse files
schenney-chromiumsvgeesus
authored andcommitted
Expand the disscussion
1 parent ebb5af9 commit 32b611b

File tree

1 file changed

+33
-25
lines changed

1 file changed

+33
-25
lines changed

mediaqueries-5/Overview.bs

Lines changed: 33 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -148,28 +148,6 @@ Units</h3>
148148
Note that this will also take into account additional restrictions the user might apply,
149149
such as minimum font sizes.
150150

151-
<h3 id='mq-prefers-security'>
152-
Prefers-* Media Features Security and Privacy</h3>
153-
154-
Media features that reflect operating system preferences are a fingerprinting risk
155-
because different users have different preferences and these are observable to origins.
156-
157-
* The 'prefers-reduced-data' media feature may be correlated with low income and limited data.
158-
* The `prefers-reduced-motion`, `prefers-color-scheme`, `prefers-reduced-transparency` and
159-
`forced-colors` queries reflect affordances for a range of special needs,
160-
161-
Properties dependent on one of the above media queries
162-
may be read by embedded iframe content using several methods:
163-
164-
* Colors and other property values may be directly accessed through computed style.
165-
* Layout affecting properties influence lengths, positions and sizes available to script.
166-
* Images may be rendered into a canvas element and pixels value read by script.
167-
168-
Authors should use these media features only when the benefit is clear,
169-
particularly when embedding third party content.
170-
Combining these queries increases the fingerprinting risk,
171-
allowing users to be sorted into smaller buckets.
172-
173151
<!--
174152
██ ██ ███████
175153
███ ███ ██ ██
@@ -3699,8 +3677,38 @@ Appendix B: Privacy Considerations</h2>
36993677

37003678
Issue: this section is <a href="https://github.com/w3c/csswg-drafts/issues?q=is%3Aopen+is%3Aissue+label%3Amediaqueries-5+label%3Aprivacy-tracker">incomplete</a>
37013679

3702-
<a href="#mq-prefers-security">Section 1.4</a> discusses fingerprinting via
3703-
the 'prefers-*' and 'forced-colors' media features.
3680+
Many media features enable fingerprinting of users
3681+
based on the display and interaction characteristics of their device:
3682+
3683+
* <a href="#mf-colors">Colors</a>: {{color}}, {{color-index}}, {{monochrome}}, {{color-gamut}} and {{dynamic-range}}
3684+
* <a href="#mf-viewport-characteristics>Viewport characteristics</a>: {{aspect-ratio}}, {{orientation}},
3685+
{{horizontal-viewport-segments}} and
3686+
{{vertical-viewport-segments}}
3687+
* <a href="#mf-display-quality">Display quality</a>: {{resolution}}, {{scan}}, {{grid}}, {{update}} and {{environment-blending}}
3688+
* <a href="#interaction">Interaction devices</a>: {{pointer}}, {{hover}}, {{any-pointer}} and {{any-hover}}.
3689+
3690+
The {{environment-blending}} feature is of particular concern
3691+
because it suggests <em>where</em> a user may be located,
3692+
and is likely present in a small set of devices.
3693+
Uncommon device properties are stronger fingerprinting features
3694+
because they help segment devices into smaller sets.
3695+
3696+
Media features that reflect operating system preferences are a fingerprinting risk
3697+
because such preferences are correlated with characteristics of the user themselves:
3698+
3699+
* The {{prefers-reduced-data}} media feature may be correlated with low income and limited data.
3700+
* The {{prefers-reduced-motion}}, {{prefers-color-scheme}}, {{prefers-reduced-transparency}},
3701+
{{forced-colors}} and {{inverted-colors}} queries reflect affordances for a range of special needs.
3702+
3703+
Properties dependent on one of the above media queries
3704+
may be accessed by script using several methods:
3705+
3706+
* Colors and other property values may be directly accessed through computed style.
3707+
* Layout affecting properties (such as font size) influence lengths, positions and sizes available to script.
3708+
3709+
UAs may disable these media features when users have expressed sensitivity to tracking.
3710+
Alternatively, UAs may limit the combination of features within a single page
3711+
to reduce the fingerprinting power of the page.
37043712

37053713
The {{PreferenceManager}} object allows querying some user-preference [=media features=]. This
37063714
is not a privacy leak, as that information is already trivially
@@ -3721,7 +3729,7 @@ Appendix B: Privacy Considerations</h2>
37213729

37223730
Issue: this section is <a href="https://github.com/w3c/csswg-drafts/issues?q=is%3Aopen+is%3Aissue+label%3Amediaqueries-5+label%3Asecurity-tracker+">incomplete</a>
37233731

3724-
The 'display-mode' media feature allows an origin
3732+
The {{display-mode}} media feature allows an origin
37253733
access to aspects of a user’s local computing environment and,
37263734
particularly when used together with an [=application manifest=] [=manifest/display=] member [[APPMANIFEST]],
37273735
allows an origin some measure of control over a user agent’s native UI.

0 commit comments

Comments
 (0)