Skip to content

Commit

Permalink
Rewrite to account for the additional display mode.
Browse files Browse the repository at this point in the history
This now accounts for the fact that there are now more than two
non-application-context display modes.
  • Loading branch information
mgiuca committed Feb 26, 2024
1 parent 118cae8 commit 34ae1b6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions mediaqueries-5/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1330,18 +1330,20 @@ Display Modes: the ''display-mode'' media feature </h3>

<dt><dfn>standalone</dfn>
<dd>
The [=display mode/standalone=] display mode is in use.
The [=display mode/standalone=] display mode is in use. Only applicable in an [=application
context=].

<dt><dfn>minimal-ui</dfn>
<dd>
The [=display mode/minimal-ui=] display mode is in use.
The [=display mode/minimal-ui=] display mode is in use. Only applicable in an [=application
context=].

<dt><dfn>browser</dfn>
<dd>
The browsing context is displayed using the platform-specific convention for opening
hyperlinks in the user agent (e.g., in a browser tab or web browser window with controls such
as an address bar). This should be used for non-[=application context|application contexts=]
that are not fullscreen.
where no other display mode is appropriate.

Corresponds to the [=display mode/browser=] display mode.

Expand Down Expand Up @@ -1371,8 +1373,7 @@ Display Modes: the ''display-mode'' media feature </h3>
<pre class="lang-css">@media (display-mode: standalone) { … }</pre>

The user agent could set '@media/display-mode' to any of the other values, depending on the
actual mode currently in use. When used outside of an [=application context=], the
'@media/display-mode' will always be ''display-mode/browser'' or ''display-mode/fullscreen''.
actual mode currently in use.
</div>

<details class="note">
Expand Down

0 comments on commit 34ae1b6

Please sign in to comment.