Skip to content

Commit

Permalink
Matt comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dmurph committed Sep 17, 2020
1 parent 26f8650 commit 27f2859
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -597,13 +597,33 @@ <h2>
As such, the user agent MUST support the <a>browser</a> <a>display
mode</a>.
</p>
<p>
The fallback chain for:
<ol>
<li>
{{browser}} is «{{browser}}».
</li>
<li>
<a data-link-for="DisplayModeType">minimal-ui</a> is «
<a data-link-for="DisplayModeType">minimal-ui</a>, {{browser}}».
</li>
<li>
{{standalone}} is «{{standalone}},
<a data-link-for="DisplayModeType">minimal-ui</a>, {{browser}}».
</li>
<li>
{{fullscreen}} is «{{fullscreen}}, {{standalone}},
<a data-link-for="DisplayModeType">minimal-ui</a>, {{browser}}».
</li>
</ol>
</p>
<p>
For more advanced usages, the {{WebAppManifest/display_override}}
member can be used to specify a custom fallback order.
</p>
<p>
The steps for determing the web app's chosen display mode is given
by the following algorithm. The algorithm takes a
The <dfn>steps for determing the web app's chosen display mode</dfn> is
given by the following algorithm. The algorithm takes a
[=processed manifest=] |manifest:processed manifest| and returns a
[=display mode=].
<ol>
Expand All @@ -617,31 +637,9 @@ <h2>
</li>
</ol>
</li>
<li>
Define the |fallback_chain| for {{browser}} to be [{{browser}}]
</li>
<li>
Define the |fallback_chain| for <a data-link-for="DisplayModeType">
minimal-ui</a> to be [<a data-link-for="DisplayModeType">minimal-ui
</a>, {{browser}}]
</li>
<li>
Define the |fallback_chain| for {{standalone}} to be [
{{standalone}}, <a data-link-for="DisplayModeType">minimal-ui</a>,
{{browser}}]
</li>
<li>
Define the |fallback_chain| for {{fullscreen}} to be [
{{fullscreen}}, {{standalone}}, <a data-link-for="DisplayModeType">
minimal-ui</a>, {{browser}}]
</li>
<li>
Let |candidate_display_mode| be the the value specified by the
|manifest|.{{WebAppManifest/display}} property.
</li>
<li>
[=list/For each=] |fallback_mode:DisplayModeType| of the
|fallback_chain| of the |candidate_display_mode|:
fallback_chain of |manifest|.{{WebAppManifest/display}}:
<ol>
<li>
If the user agent supports the |fallback_mode|, then
Expand All @@ -650,6 +648,12 @@ <h2>
</ol>
</li>
</ol>
<p class="note">
The above loop is guaranteed to return a value before it terminates,
due to the fact that {{browser}} is in every mode's fallback chain,
and the requirement that all user agents support the {{browser}} [=display
mode=].
</p>
</p>
<div class="example">
<p>
Expand Down Expand Up @@ -719,10 +723,6 @@ <h2>
opening hyperlinks in the user agent (e.g., in a browser tab or a new
window).
</dd>
<dd>
Conforming user agents are required to
support the <code>browser</code> <a>display mode</a>.
</dd>
</dl>
<p class="note">
The <a>fullscreen</a> <a>display mode</a> is orthogonal to, and works
Expand Down

0 comments on commit 27f2859

Please sign in to comment.