diff --git a/index.html b/index.html index d1ccdba8d..57699009c 100644 --- a/index.html +++ b/index.html @@ -1078,12 +1078,6 @@
- We need to catch throws associated with enumerations in IDL - conversion as the spec might gain new values over time not supported - by all existing browsers. This is especially important as we rely on - enums not defined in this specification. -
start_url
member given
manifest["start_url"], manifest URL, and
@@ -1161,6 +1165,27 @@ + The steps for processing an enumeration member are given + by the following algorithm. The algorithm takes a [=DOMString=] + |value| and a [=set=] of |supported values|. This algorithm returns + a `DOMString?`. +
+dictionary WebAppManifest { - TextDirectionType dir = "auto"; + DOMString dir = "auto"; DOMString lang; USVString name; USVString short_name; @@ -1270,8 +1295,8 @@sequence<USVString> categories; DOMString iarc_rating_id; USVString start_url; - DisplayModeType display = "browser"; - OrientationLockType orientation; + DOMString display = "browser"; + DOMString orientation; USVString theme_color; USVString background_color; USVString scope; @@ -1293,9 +1318,6 @@
-
dir
member- enum TextDirectionType { "ltr", "rtl", "auto" }; -The dir member specifies the base direction for the localizable members of the manifest. The dir @@ -1347,8 +1369,8 @@
- When displaying the localizable members to an end-user, - if the base direction is ltr or rtl: + When displaying the localizable members to an end-user, if the + base direction is ltr or rtl:
+
- If the member is being @@ -1363,6 +1385,20 @@
if the base direction is rtl.
+ The steps for processing the `dir` member is given by the + following algorithm. The algorithm takes a [=DOMString=] |value| as + an argument. This algorithm returns a `DOMString`. +
++
- Let |value| be [=processing an enumeration member=] given |value| + and [=TextDirectionType=]. +
+- If |value| is undefined, then return "{{auto}}". +
+- Otherwise, return |value|. +
+
display
member
- enum DisplayModeType { - "fullscreen", - "standalone", - "minimal-ui", - "browser" - }; -
The display member is a DisplayModeType, whose value is one of display modes values. The item represents the developer's preferred display mode for the web application.
++ The steps for processing the `display` member is given by + the following algorithm. The algorithm takes a [=DOMString=] |value| + as an argument. This algorithm returns a `DOMString`. +
++ The steps for processing the `orientation` member is given + by the following algorithm. The algorithm takes a [=DOMString=] + |value| as an argument. This algorithm returns a `DOMString?`. +
+