-
Notifications
You must be signed in to change notification settings - Fork 199
Add Window controls overlay #1762
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…indow-controls-overlay
|
In case other reviewers want to learn more about WCO before reviewing: |
| @@ -0,0 +1,18 @@ | |||
| name: Window Controls Overlay | |||
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - css.properties.custom-property.env.titlebar-area-y | |
| - css.properties.custom-property.env.titlebar-area-y | |
| - html.manifest.display_override.window-controls-overlay |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
features/window-controls-overlay.yml
Outdated
| @@ -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. | |||
There was a problem hiding this comment.
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_overrideI could find had an array of strings. I don't think you'd ever literally typedisplay_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.
| 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. |
There was a problem hiding this comment.
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.
…indow-controls-overlay
Split off from #1755