diff --git a/mediaqueries-5/Overview.bs b/mediaqueries-5/Overview.bs index 20f0e8662b3..adea08fc4e1 100644 --- a/mediaqueries-5/Overview.bs +++ b/mediaqueries-5/Overview.bs @@ -1306,72 +1306,81 @@ Display Modes: the ''display-mode'' media feature Type: discrete - The 'display-mode' media feature represents the [=display mode=] of the web application. - Child browsing contexts reflect the [=display mode=] of their [=top-level browsing context=]. - - A display mode represents - how the web application is being presented within the context of an OS (e.g., in fullscreen, etc.). - Display modes correspond to user interface (UI) metaphors - and functionality in use on a given platform. - The UI conventions of the display modes are purely advisory - and implementers are free to interpret them how they best see fit. - - This specification defines the following [=display modes=]: -
+ {
+ "display": "standalone"
+ }
+
+
+ This media query can be used to determine whether the user agent has actually applied the
+ [=display mode/standalone=] mode:
- The [=display mode/fullscreen=] [=display mode=] describes the fullscreen state of the browser viewport,
- while the [[FULLSCREEN|Fullscreen API]] operates on an element contained within the viewport.
- As such, a web application can have its [=display mode=] set to [=display mode/fullscreen=],
- even while {{fullscreenElement}} returns null,
- and {{fullscreenEnabled}} returns false.
+ @media (display-mode: standalone) { … }
- The ''fullscreen'' display mode is also not directly related
+ The user agent could set '@media/display-mode' to any of the other values, depending on the
+ actual mode currently in use.
+
- /* applies when the viewport is fullscreen */
- @media (display-mode: fullscreen) {
- ...
- }
+
+ On some platforms,
+ it is possible for a user--
+ or a [[APPMANIFEST|Web Application Manifest]]--
+ to put a web application into fullscreen
+ without invoking the [[FULLSCREEN|Fullscreen API]].
+ When this happens,
+ the '':fullscreen'' pseudo class will not match,
+ but ''(display-mode: fullscreen)'' will match.
+ This is exemplified in CSS code below:
+
+
+ /* applies when the viewport is fullscreen */
+ @media (display-mode: fullscreen) { … }
+
+ /* applies when an element is fullscreen */
+ #game:fullscreen { … }
+
+
+
- /* applies when an element is fullscreen */
- #game:fullscreen {
- ...
- }
-
-