diff --git a/index.html b/index.html index 0269d70a..cb48d612 100644 --- a/index.html +++ b/index.html @@ -1131,12 +1131,11 @@

The [=manifest's=] `background_color` member is a [=manifest/themeable member=] that describes the expected background - color of the web application. It repeats what is - already available in the application stylesheet but can be used by - the user agent to draw the background color of a web - application for which the manifest is known before the files are - actually available, whether they are fetched from the network or - retrieved from disk. + color of the web application. It repeats what is already available in + the application stylesheet but can be used by the user agent + to draw the background color of a web application for which the + manifest is known before the files are actually available, whether + they are fetched from the network or retrieved from disk.

The [=manifest/background_color=] member is only meant to improve the @@ -1507,18 +1506,20 @@

The [=manifest's=] color_scheme_dark member is an [=ordered - map=] whose keys are [=manifest/themeable members=] and whose - values are the overriding color values for those members when the - operating system uses a dark color theme. + map=] whose keys are [=manifest/themeable members=] and whose values + are the overriding color values for those members when the operating + system uses a dark color theme.

A themeable member is one of the following [=manifest=] members: -

+

When [=applying=] a manifest and the operating system uses a dark color theme, for each [=manifest/themeable member=] |member| that @@ -1561,8 +1562,8 @@

  • [=Map/Set=] |manifest|["color_scheme_dark"] to |processedColorScheme|.
  • -
  • [=List/For each=] |member:string| of - « "theme_color", "background_color" »: +
  • [=List/For each=] |member:string| of « "theme_color", + "background_color" »:
    1. [=Process a color member=] passing |colorScheme|, |processedColorScheme|, |member|. @@ -1611,7 +1612,8 @@

      The steps for processing a manifest are given by the following algorithm. The algorithm takes a [=URL=] |document URL:URL|, a - [=URL=] |manifest URL:URL|, and a [=byte sequence=] |bodyBytes|. + [=URL=] |manifest URL:URL|, a [=byte sequence=] |bodyBytes|, and + |client| (an [=environment settings object=] or null).

      1. Let |json| be the result of [=parse JSON bytes to an Infra @@ -1681,6 +1683,9 @@

        any proprietary and/or other supported members at this point in the algorithm.

      2. +
      3. Set |manifest|'s client to |client|. +
      4. Let [=document=]'s processed manifest be |manifest|.
      5. @@ -1751,9 +1756,10 @@

        The [=processing a manifest=] steps are invoked by [[HTML]]'s - processing steps for the [^link^] element, but MAY also be invoked - by the user agent to process a manifest without an associated - [=document=]. + processing steps for the [^link^] element, in which case |client| + is the [=document=]'s [=relevant settings object=]. The steps MAY + also be invoked by the user agent to process a manifest without an + associated [=document=], in which case |client| is null.

        In this case, to match the guarantees made by the corresponding @@ -1812,22 +1818,23 @@

        [=apply=] a manifest to it before [=navigate|navigation=] begins.

        - A user agent MAY also [=apply=] a manifest to an existing [=top-level - browsing context=]. If the [=navigable/active document=]'s - [=Document/URL=] is [=manifest/within scope=] of the manifest, the - existing [=top-level browsing context=] becomes an [=application - context=]. If the [=Document/URL=] is not [=manifest/within scope=], - the resulting behavior is implementation-defined. + A user agent MAY also [=apply=] a manifest to an existing + [=top-level browsing context=]. If the [=navigable/active + document=]'s [=Document/URL=] is [=manifest/within scope=] of the + manifest, the existing [=top-level browsing context=] becomes an + [=application context=]. If the [=Document/URL=] is not + [=manifest/within scope=], the resulting behavior is + implementation-defined.