Skip to content

Commit

Permalink
Add link to whatwg/html#7485.
Browse files Browse the repository at this point in the history
  • Loading branch information
bradtriebwasser committed May 2, 2023
1 parent 83428f6 commit 4c06ad0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EXPLAINER.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ This proposal does not define behavior for certain scenarios which should be con
#### **Feature detection**
There is no standard API for querying which features are supported in the [`window.open()`](https://html.spec.whatwg.org/multipage/window-object.html#dom-open-dev) `features` argument. There is no way for a web application to check that the user agent supports the `fullscreen` key in the `features` argument without calling the API and detecting if the resulting popup window's [`Document.fullscreenElement`](https://fullscreen.spec.whatwg.org/#ref-for-dom-document-fullscreenelement%E2%91%A0) is non-null.

The ability to detect supported keys of the `features` argument is out of scope for this proposal.
The ability to detect supported keys of the `features` argument is out of scope for this proposal. Future [improvements](https://github.com/whatwg/html/issues/7485) to `window.open()` could allow for feature detection.

#### **Requiring popup initial boundaries**
Scripts may specify window boundaries through the `left`, `top`, `width`, `height` features of [`window.open()`](https://html.spec.whatwg.org/multipage/window-object.html#dom-open-dev) which, under this proposal, control which display the window will appear fullscreen on. Leaving out these parameters may cause undefined behavior (e.g. appearing on the display which contains screen coordinates (0,0)). As a more concrete solution, the algorithmic check for fullscreen could require that `left` and `top` are set which always require the web application to specify a display, and leaves less room for decision by the user agent. However, since `left`, `top`, `width`, `height` are already not required for popup windows, it's reasonable to let the user agent use the existing defaults and fullscreen the window on whichever display would have contained the popup if the `fullscreen` parameter wasn't specified.
Expand Down

0 comments on commit 4c06ad0

Please sign in to comment.