Skip to content

Conversation

@jamesnw
Copy link
Collaborator

@jamesnw jamesnw commented Sep 10, 2024

Split off from #1755

@github-actions github-actions bot added the feature definition Creating or defining new features or groups of features. label Sep 10, 2024
@captainbrosset
Copy link
Contributor

@@ -0,0 +1,18 @@
name: Window Controls Overlay
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hate it when we have to capitalize features, but this one is so weirdly named I don't think we have a reasonable alternative.

- css.properties.custom-property.env.titlebar-area-height
- css.properties.custom-property.env.titlebar-area-width
- css.properties.custom-property.env.titlebar-area-x
- css.properties.custom-property.env.titlebar-area-y
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- css.properties.custom-property.env.titlebar-area-y
- css.properties.custom-property.env.titlebar-area-y
- html.manifest.display_override.window-controls-overlay

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@@ -0,0 +1,18 @@
name: Window Controls Overlay
description: The Window Controls Overlay API displays content in the title bar area of a progressive web app that is installed on desktop and has `display_override:\ window-controls-overlay` in the manifest.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This contains almost everything we need, but does require some clean ups:

  • If we're mentioning the main entry point, we should lead with it like we do for HTML elements, CSS properties, and some APIs.
  • Every other example of display_override I could find had an array of strings. I don't think you'd ever literally type display_override: window-controls-overlay, but I don't know this feature well and could be corrected.
  • "on desktop" sounds clipped, so I went with "desktop device" (see also)
  • Due to tech writer esoterica, replacing avoiding "displays" as a verb.
Suggested change
description: The Window Controls Overlay API displays content in the title bar area of a progressive web app that is installed on desktop and has `display_override:\ window-controls-overlay` in the manifest.
description: The `display_override: ["window-controls-overlay"]` web application manifest member shows content in the title bar area of a progressive web app that is installed on a desktop device.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

display_override: ["window-controls-overlay"] is the correct syntax, sorry I missed it in my previous review. This manifest member provides a list of display-mode fallbacks. When using the display-mode member, you don't get to specify a sequence of fallbacks, only the mode you prefer, and you then let the browser choose how to fallback in case a mode isn't possible.

@jamesnw jamesnw requested a review from ddbeck September 11, 2024 13:01
@ddbeck ddbeck merged commit a9fdbe3 into web-platform-dx:main Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature definition Creating or defining new features or groups of features.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants