Skip to content

Commit ec8a23b

Browse files
clarify the definition of "navigation scope", "applied", and off-scope theming (#1151)
1 parent 40cf2c7 commit ec8a23b

File tree

1 file changed

+30
-19
lines changed

1 file changed

+30
-19
lines changed

index.html

+30-19
Original file line numberDiff line numberDiff line change
@@ -1076,12 +1076,17 @@ <h3>
10761076
</p>
10771077
<p>
10781078
If the user agent honors the value of the [=manifest/theme_color=]
1079-
member as the <a>default theme color</a>, then that color serves as
1080-
the <a>theme color</a> for all browsing contexts to which the
1081-
manifest is <a>applied</a>. However, a document may override the
1082-
<a>default theme color</a> through the inclusion of a valid [[HTML]]
1083-
[^meta^] element whose [^meta/name^] attribute value is
1084-
`"theme-color"`.
1079+
member as the [=default theme color=], then that color serves as the
1080+
[=theme color=] for all [=browsing contexts=] to which the manifest
1081+
is [=applied=]. However, the user agent MAY override the [=default
1082+
theme color=] if a [=document=] whose [=Document/URL=] is
1083+
[=URL/within scope=] of the [=application context=]'s [=manifest=]
1084+
includes a [^meta^] element whose [^meta/name^] attribute is
1085+
"[^meta/name/theme-color^]". However, the user agent SHOULD NOT
1086+
override the [=default theme color=] via a [^meta^] element whose
1087+
[^meta/name^] attribute is "theme-color" for [=documents=]'
1088+
[=Document/URL=] are not [=URL/within scope=], since the application
1089+
has no control over these documents.
10851090
</p>
10861091
<p data-cite="CSS-COLOR-4">
10871092
The user agent MAY ignore the <a>theme color</a>'s [=alpha
@@ -1703,12 +1708,23 @@ <h3 id="applying">
17031708
Applying the manifest
17041709
</h3>
17051710
<p>
1706-
A [=Document/processed manifest=] is <dfn data-export=""
1707-
data-local-lt="apply|applying">applied</dfn> to a <a>top-level
1708-
browsing context</a>, meaning that the members of the
1709-
[=Document/processed manifest=] are affecting the presentation or
1710-
behavior of a browsing context.
1711+
A [=Document/processed manifest=] is <dfn data-lt=
1712+
"apply|applying">applied</dfn> to a [=top-level browsing context=],
1713+
meaning that the members of the [=manifest=] are affecting the
1714+
presentation and/or behavior of the browsing context. Whenever a
1715+
[=top-level browsing context=] is created, the user agent MAY
1716+
[=apply=] a manifest to it before [=navigate|navigation=] begins.
17111717
</p>
1718+
<aside class="note">
1719+
Whether to [=apply=] a manifest, and which manifest to apply, is at
1720+
the discretion of the user agent, based on the user's actions. For
1721+
example, if the user launched an application from the system menu
1722+
or from a [=launching a shortcut|shortcut=], the user agent might
1723+
create a new [=top-level browsing context=] with that application's
1724+
[=manifest=] [=applied=], but it might not do so if the user simply
1725+
clicked a bookmark to a URL within the application's
1726+
[=manifest/navigation scope=].
1727+
</aside>
17121728
<p>
17131729
A <a>top-level browsing context</a> that has a manifest applied to
17141730
it is referred to as an <dfn data-export="">application
@@ -1730,11 +1746,6 @@ <h3 id="applying">
17301746
changed it when the application was <a>installed</a>.
17311747
</p>
17321748
</aside>
1733-
<p>
1734-
The appropriate time to <a>apply</a> a manifest is when the
1735-
<a>application context</a> is created and before
1736-
[=navigate|navigation=] to the <a>start URL</a> begins.
1737-
</p>
17381749
</section>
17391750
<section id="updating">
17401751
<h3>
@@ -2575,9 +2586,9 @@ <h2>
25752586
</h2>
25762587
<p>
25772588
The <dfn data-dfn-for="manifest" data-lt="navigation scope"
2578-
data-export="">navigation scope of a manifest</dfn> is the "scope" item
2579-
of a [=Document/processed manifest=]. The navigation scope restricts
2580-
the set of URLs to which an [=application context=] can be
2589+
data-export="">navigation scope of a manifest</dfn> is the
2590+
"[=manifest/scope=]" member of a [=Document/processed manifest=]. The
2591+
navigation scope is the URLs to which an [=application context=] can be
25812592
[=navigated=] while the manifest is [=applied=].
25822593
</p>
25832594
<div class="note">

0 commit comments

Comments
 (0)