From ec8a23b832f106517a6e03cadc8b5efee923b0cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20C=C3=A1ceres?= Date: Thu, 7 Nov 2024 23:08:49 +1100 Subject: [PATCH] clarify the definition of "navigation scope", "applied", and off-scope theming (#1151) --- index.html | 49 ++++++++++++++++++++++++++++++------------------- 1 file changed, 30 insertions(+), 19 deletions(-) diff --git a/index.html b/index.html index 4f7b93b8..234ab62c 100644 --- a/index.html +++ b/index.html @@ -1076,12 +1076,17 @@

If the user agent honors the value of the [=manifest/theme_color=] - member as the default theme color, then that color serves as - the theme color for all browsing contexts to which the - manifest is applied. However, a document may override the - default theme color through the inclusion of a valid [[HTML]] - [^meta^] element whose [^meta/name^] attribute value is - `"theme-color"`. + member as the [=default theme color=], then that color serves as the + [=theme color=] for all [=browsing contexts=] to which the manifest + is [=applied=]. However, the user agent MAY override the [=default + theme color=] if a [=document=] whose [=Document/URL=] is + [=URL/within scope=] of the [=application context=]'s [=manifest=] + includes a [^meta^] element whose [^meta/name^] attribute is + "[^meta/name/theme-color^]". However, the user agent SHOULD NOT + override the [=default theme color=] via a [^meta^] element whose + [^meta/name^] attribute is "theme-color" for [=documents=]' + [=Document/URL=] are not [=URL/within scope=], since the application + has no control over these documents.

The user agent MAY ignore the theme color's [=alpha @@ -1703,12 +1708,23 @@

Applying the manifest

- A [=Document/processed manifest=] is applied to a top-level - browsing context, meaning that the members of the - [=Document/processed manifest=] are affecting the presentation or - behavior of a browsing context. + A [=Document/processed manifest=] is applied to a [=top-level browsing context=], + meaning that the members of the [=manifest=] are affecting the + presentation and/or behavior of the browsing context. Whenever a + [=top-level browsing context=] is created, the user agent MAY + [=apply=] a manifest to it before [=navigate|navigation=] begins.

+

A top-level browsing context that has a manifest applied to it is referred to as an application @@ -1730,11 +1746,6 @@

changed it when the application was installed.

-

- The appropriate time to apply a manifest is when the - application context is created and before - [=navigate|navigation=] to the start URL begins. -

@@ -2575,9 +2586,9 @@

The navigation scope of a manifest is the "scope" item - of a [=Document/processed manifest=]. The navigation scope restricts - the set of URLs to which an [=application context=] can be + data-export="">navigation scope of a manifest is the + "[=manifest/scope=]" member of a [=Document/processed manifest=]. The + navigation scope is the URLs to which an [=application context=] can be [=navigated=] while the manifest is [=applied=].