Skip to content

Commit

Permalink
display-mode: Rewrite note about display-mode media feature to helpfu…
Browse files Browse the repository at this point in the history
…lly point towards the CSS spec.

Also linkify display-mode properly.
  • Loading branch information
mgiuca committed Feb 26, 2024
1 parent b6b5223 commit d49f0cf
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2682,14 +2682,20 @@ <h2>
</p>
<p>
A user agent MUST reflect the applied <a>display mode</a> of the web
application in the '`display-mode`' media feature [[MEDIAQUERIES-5]].
application in the <a data-xref-type="css-descriptor" data-xref-for=
"@media">`display-mode`</a> media feature [[MEDIAQUERIES-5]].
</p>
<p class="note">
A user agent will expose the '`display-mode`' media feature
irrespective of whether a manifest is being applied to a browsing
context. For example, if the end-user puts the application into
fullscreen, then the user agent would reflect this change to CSS and
scripts via the '`display-mode`' media feature.
A user agent will expose the actual display mode being applied — not
necessarily the one declared in the manifest — via the
<a data-xref-type="css-descriptor" data-xref-for=
"@media">`display-mode`</a> media feature, accessible through CSS or
JavaScript. Note that this media feature will also reflect other
display modes for a web page when a manifest is not being applied. For
example, if the end-user puts the page into fullscreen, then the user
agent would reflect this change to CSS and scripts via the
<a data-xref-type="css-descriptor" data-xref-for=
"@media">`display-mode`</a> media feature.
</p>
</section>
<section id="priv-sec">
Expand Down

0 comments on commit d49f0cf

Please sign in to comment.