From 27f2859001e93b097114baa3336e32d99581ed2a Mon Sep 17 00:00:00 2001 From: Daniel Murph Date: Wed, 9 Sep 2020 14:09:47 -0700 Subject: [PATCH] Matt comments --- index.html | 58 +++++++++++++++++++++++++++--------------------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/index.html b/index.html index f1471c706..8fd90fb12 100644 --- a/index.html +++ b/index.html @@ -597,13 +597,33 @@

As such, the user agent MUST support the browser display mode.

+

+ The fallback chain for: +

    +
  1. + {{browser}} is «{{browser}}». +
  2. +
  3. + minimal-ui is « + minimal-ui, {{browser}}». +
  4. +
  5. + {{standalone}} is «{{standalone}}, + minimal-ui, {{browser}}». +
  6. +
  7. + {{fullscreen}} is «{{fullscreen}}, {{standalone}}, + minimal-ui, {{browser}}». +
  8. +
+

For more advanced usages, the {{WebAppManifest/display_override}} member can be used to specify a custom fallback order.

- The steps for determing the web app's chosen display mode is given - by the following algorithm. The algorithm takes a + The steps for determing the web app's chosen display mode is + given by the following algorithm. The algorithm takes a [=processed manifest=] |manifest:processed manifest| and returns a [=display mode=].

    @@ -617,31 +637,9 @@

-
  • - Define the |fallback_chain| for {{browser}} to be [{{browser}}] -
  • -
  • - Define the |fallback_chain| for - minimal-ui to be [minimal-ui - , {{browser}}] -
  • -
  • - Define the |fallback_chain| for {{standalone}} to be [ - {{standalone}}, minimal-ui, - {{browser}}] -
  • -
  • - Define the |fallback_chain| for {{fullscreen}} to be [ - {{fullscreen}}, {{standalone}}, - minimal-ui, {{browser}}] -
  • -
  • - Let |candidate_display_mode| be the the value specified by the - |manifest|.{{WebAppManifest/display}} property. -
  • [=list/For each=] |fallback_mode:DisplayModeType| of the - |fallback_chain| of the |candidate_display_mode|: + fallback_chain of |manifest|.{{WebAppManifest/display}}:
    1. If the user agent supports the |fallback_mode|, then @@ -650,6 +648,12 @@

  • +

    + 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=]. +

    @@ -719,10 +723,6 @@

    opening hyperlinks in the user agent (e.g., in a browser tab or a new window). -
    - Conforming user agents are required to - support the browser display mode. -

    The fullscreen display mode is orthogonal to, and works