178
178
"lang": "en",
179
179
"dir": "ltr",
180
180
"name": "Super Racer 3000",
181
+ "description": "The ultimate futuristic racing game from the future!",
181
182
"short_name": "Racer3K",
182
183
"icons": [{
183
184
"src": "icon/lowres.webp",
@@ -195,7 +196,16 @@ <h3>
195
196
"display": "fullscreen",
196
197
"orientation": "landscape",
197
198
"theme_color": "aliceblue",
198
- "background_color": "red"
199
+ "background_color": "red",
200
+ "screenshots": [{
201
+ "src": "screenshots/in-game-1x.jpg",
202
+ "sizes": "640x480",
203
+ "type": "image/jpeg"
204
+ },{
205
+ "src": "screenshots/in-game-2x.jpg",
206
+ "sizes": "1280x920",
207
+ "type": "image/jpeg"
208
+ }]
199
209
}
200
210
</ pre >
201
211
</ section >
@@ -897,10 +907,18 @@ <h3>
897
907
of running < a > processing a color member</ a > given
898
908
< var > json</ var > ["< a > background_color</ a > "].
899
909
</ li >
910
+ < li > Set < var > manifest</ var > ["< a > categories</ a > "] to the result of
911
+ running < a > processing the < code > categories</ code > member</ a > given
912
+ < var > json</ var > ["< a > categories</ a > "].
913
+ </ li >
900
914
< li > Set < var > manifest</ var > ["< a > icons</ a > "] to the result of running
901
915
< a > processing `ManifestImageResource` members</ a > given
902
916
< var > json</ var > ["< a > icons</ a > "] and < var > manifest URL</ var > .
903
917
</ li >
918
+ < li > Set < var > manifest</ var > ["< a > screenshots</ a > "] to the result of
919
+ running < a > processing `ManifestImageResource` members</ a > given < var >
920
+ manifest</ var > ["< a > screenshots</ a > "] and < var > manifest URL</ var > .
921
+ </ li >
904
922
< li > Set < var > manifest</ var > ["< a > related_applications</ a > "] to the
905
923
result of running < a > processing the < code > related_applications</ code >
906
924
member</ a > given < var > json</ var > ["< a > related_applications</ a > "].
@@ -1019,7 +1037,11 @@ <h2>
1019
1037
DOMString lang;
1020
1038
USVString name;
1021
1039
USVString short_name;
1040
+ USVString description;
1022
1041
sequence<ManifestImageResource> icons;
1042
+ sequence<ManifestImageResource> screenshots;
1043
+ sequence<USVString> categories;
1044
+ DOMString iarc_rating_id;
1023
1045
USVString start_url;
1024
1046
DisplayModeType display = "browser";
1025
1047
OrientationLockType orientation;
@@ -1202,6 +1224,15 @@ <h3>
1202
1224
the web application.
1203
1225
</ p >
1204
1226
</ section >
1227
+ < section >
1228
+ < h3 >
1229
+ < code title =""> description</ code > member
1230
+ </ h3 >
1231
+ < p >
1232
+ The < dfn > description</ dfn > member allows the developer to describe
1233
+ the purpose of the web application.
1234
+ </ p >
1235
+ </ section >
1205
1236
< section >
1206
1237
< h3 >
1207
1238
< code > scope</ code > member
@@ -1596,6 +1627,112 @@ <h3>
1596
1627
"@media "> prefers-color-scheme</ a > .
1597
1628
</ p >
1598
1629
</ section >
1630
+ < section >
1631
+ < h3 >
1632
+ < code title =""> categories</ code > member
1633
+ </ h3 >
1634
+ < p >
1635
+ The < dfn > categories</ dfn > member describes the expected application
1636
+ categories to which the web application belongs.
1637
+ </ p >
1638
+ < p >
1639
+ The < a > categories</ a > member is only meant as a hint to catalogs or
1640
+ stores listing web applications and it is expected that these will
1641
+ make a best effort to find appropriate categories (or category) under
1642
+ which to list the web application. Like search engines and meta
1643
+ keywords, catalogs and stores are not required to honor this hint.
1644
+ </ p >
1645
+ < p >
1646
+ The steps for < dfn > processing the < code > categories</ code >
1647
+ member</ dfn > are given by the following algorithm. The algorithm
1648
+ takes a sequence<< a > USVString</ a > > < var > categories</ var > as an
1649
+ argument. This algorithm returns an
1650
+ < code > Array<USVString></ code > .
1651
+ </ p >
1652
+ < ol >
1653
+ < li > [=list/For each=] < var > category</ var > of < var > categories</ var > :
1654
+ < ol >
1655
+ < li > [=set/Replace=] < var > category</ var > within
1656
+ < var > categories</ var > with < var > category</ var > , < a > ascii
1657
+ lowercased</ a > .
1658
+ </ li >
1659
+ </ ol >
1660
+ </ li >
1661
+ < li > Return < var > categories</ var > .
1662
+ </ li >
1663
+ </ ol >
1664
+ < p >
1665
+ The categories < a > string</ a > array is case insensitive and converted
1666
+ to lower-case by following the processing algorithm. Thus,
1667
+ < code > sports</ code > , < code > Sports</ code > , < code > SPORTS</ code > , and
1668
+ < code > SpOrTs</ code > are all equivalent.
1669
+ </ p >
1670
+ < p class ="note ">
1671
+ Manifest authors are encouraged to use lower-case.
1672
+ </ p >
1673
+ < p class ="note ">
1674
+ This specification does not define the particular values for
1675
+ < dfn > USVString</ dfn > s for the < a > categories</ a > member. However, the
1676
+ working group maintains a < a href =
1677
+ "https://github.com/w3c/manifest/wiki/Categories "> list of known
1678
+ values</ a > in our wiki.
1679
+ </ p >
1680
+ </ section >
1681
+ < section >
1682
+ < h3 >
1683
+ < code title =""> screenshots</ code > member
1684
+ </ h3 >
1685
+ < p >
1686
+ The < dfn > screenshots</ dfn > member is an < a > array</ a > of
1687
+ {{ManifestImageResource}}s, representing the web application in
1688
+ common usage scenarios.
1689
+ </ p >
1690
+ </ section >
1691
+ < section >
1692
+ < h3 >
1693
+ < code title =""> iarc_rating_id</ code > member
1694
+ </ h3 >
1695
+ < p >
1696
+ The < dfn > iarc_rating_id</ dfn > member is a < a > string</ a > that
1697
+ represents the < a href ="https://www.globalratings.com/ "> International
1698
+ Age Rating Coalition (IARC)</ a > certification code of the web
1699
+ application. It is intended to be used to determine which ages the
1700
+ web application is appropriate for.
1701
+ </ p >
1702
+ < p class ="note ">
1703
+ An IARC certificate can be obtained via participating storefronts,
1704
+ intended to be used for distributing the web app. The
1705
+ < a > iarc_rating_id</ a > member only takes a single certification code.
1706
+ The same code can be shared across participating storefronts, as long
1707
+ as the distributed product remains the same (i.e., doesn’t serve
1708
+ totally different code paths depending on user agent sniffing and the
1709
+ like) and the other storefronts support it.
1710
+ </ p >
1711
+ < div class ="informative ">
1712
+ < p >
1713
+ The following shows a very simple < a > manifest</ a > with the
1714
+ < code > iarc_rating_id</ code > member.
1715
+ </ p >
1716
+ < pre class ="example json " title ="very simple manifest ">
1717
+ {
1718
+ "name": "Donate App",
1719
+ "description": "This app helps you donate to worthy causes.",
1720
+ "iarc_rating_id": "e84b072d-71b3-4d3e-86ae-31a8ce4e53b7",
1721
+ "icons": [{
1722
+ "src": "images/icon.png",
1723
+ "sizes": "192x192"
1724
+ }]
1725
+ }
1726
+ </ pre >
1727
+ </ div >
1728
+ < p >
1729
+ More information on the IARC can be found at: < a href =
1730
+ "https://www.globalratings.com/how-iarc-works.aspx "> How IARC
1731
+ Works</ a > and < a href =
1732
+ "https://www.globalratings.com/for-developers.aspx "> How developers
1733
+ can get their games and apps rated with IARC</ a > .
1734
+ </ p >
1735
+ </ section >
1599
1736
< section >
1600
1737
< h3 >
1601
1738
< code > shortcuts</ code > member
@@ -2651,7 +2788,7 @@ <h3>
2651
2788
consistent.
2652
2789
</ p >
2653
2790
< p >
2654
- To allow the community to easily find extensions, please add your
2791
+ To allow the community can easily find extensions, please add your
2655
2792
extensions to the < a href =
2656
2793
"https://github.com/w3c/manifest/wiki/Extensions-Registry "> Extensions
2657
2794
Registry</ a > .
@@ -2745,29 +2882,6 @@ <h2>
2745
2882
</ dd >
2746
2883
</ dl >
2747
2884
</ section >
2748
- < section class ="appendix ">
2749
- < h2 >
2750
- Application Information
2751
- </ h2 >
2752
- < p >
2753
- Several members of the Web App Manifest provide additional metadata
2754
- related to how the web application may be presented in the context of a
2755
- digital storefront, installation dialog, or other surfaces where this
2756
- web application may be marketed or distributed. In an effort to support
2757
- these use cases better, the following members have been moved into
2758
- {{WebAppManifestAppInfo}}:
2759
- </ p >
2760
- < ul >
2761
- < li > {{WebAppManifestAppInfo/categories}}
2762
- </ li >
2763
- < li > {{WebAppManifestAppInfo/description}}
2764
- </ li >
2765
- < li > {{WebAppManifestAppInfo/iarc_rating_id}}
2766
- </ li >
2767
- < li > {{WebAppManifestAppInfo/screenshots}}
2768
- </ li >
2769
- </ ul >
2770
- </ section >
2771
2885
< section class ="appendix ">
2772
2886
< h2 >
2773
2887
Relationship to HTML's < code > link</ code > and < code > meta</ code > elements
0 commit comments