Skip to content

Commit 8d4a1c8

Browse files
committed
[mediaqueries-5] Security considerations for display-mode
See w3c#6343
1 parent 839ae05 commit 8d4a1c8

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

css-scrollbars-1/Overview.bs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ or any animation thereof, such as fading or sliding in/out of view.
285285

286286
<h2 class="no-num" id="acknowledgments">Appendix A. Acknowledgments</h2>
287287

288-
This appendix is <em>informative</em>.
288+
This appendix is <em>non-normative</em>.
289289

290290
<p>
291291
Thanks to the use-cases, prototyping, implementation, and feedback from
@@ -299,7 +299,7 @@ from
299299

300300
<h2 class="no-num" id="changes">Appendix B. Changes</h2>
301301

302-
This appendix is <em>informative</em>.
302+
This appendix is <em>non-normative</em>.
303303

304304
<h3 class="no-num" id="changes-since-2021-08-05">
305305
Changes from the <a href="https://www.w3.org/TR/2021/WD-css-scrollbars-1-20210805/">2021-08-05 Working Draft</a></h3>
@@ -327,7 +327,7 @@ Changes from the <a href="https://www.w3.org/TR/2018/WD-css-scrollbars-1-2018092
327327

328328
<h2 class="no-num" id="security-privacy-considerations">Appendix C. Considerations for Security and Privacy</h2>
329329

330-
This appendix is <em>informative</em>.
330+
This appendix is <em>non-normative</em>.
331331

332332
<h3 class="no-num" id="security-considerations">Considerations for Security</h3>
333333

@@ -416,8 +416,9 @@ or on overflowing elements with scrollbars in the page.</p>
416416

417417
<h2 class="no-num" id="accessibility-considerations">Appendix D. Considerations for accessibility</h2>
418418

419-
This appendix is <em>informative</em>.
419+
This appendix is <em>non-normative</em>.
420420

421+
<div class=informative>
421422
As noted [[#scrollbar-width|in the definition of the property]],
422423
authors need to be mindful of the accessibility implications
423424
of using ''scrollbar-width: thin''.
@@ -441,3 +442,4 @@ The CSS Working Group also acknowledges the needs of some users
441442
to have scrollbars that are wider than is typical.
442443
Operating systems and user agents can offer a means to let users express that preference,
443444
and in such cases, CSS will honor that choice.
445+
</div>

mediaqueries-5/Overview.bs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3367,6 +3367,20 @@ device-aspect-ratio</h3>
33673367
</pre>
33683368
</div>
33693369

3370+
<h2 id=priv-sec class=no-num>
3371+
Appendix B: Privacy and Security Considerations</h2>
3372+
3373+
Issue: this section is incomplete
3374+
3375+
The 'display-mode' media feature allows an origin
3376+
access to aspects of a user’s local computing environment and,
3377+
particularly when used together with an [=application manifest=] [=manifest/display=] member [[APPMANIFEST]],
3378+
allows an origin some measure of control over a user agent’s native UI:
3379+
Through a CSS media query, a script can know the display mode of a web application.
3380+
An attacker could, in such a case,
3381+
exploit the fact that an application is being displayed in fullscreen
3382+
to mimic the user interface of another application.
3383+
33703384
<h2 id="changes" class="no-num">
33713385
Changes</h2>
33723386

0 commit comments

Comments
 (0)