w3c / w3c/csswg-drafts

[css-om-view] Window move and resize functions should be allowed to do nothing

Open
#4,728 1 comment 0 reactions 1 assignee View on GitHub

@smfr is already working on this.

Since Feb 6, 2020.

cssom-view-1 Needs Edits
Dominant language
Bikeshed
Stars
4.9k
Forks
816
PR merge metrics
PR metrics pending

Description

https://drafts.csswg.org/cssom-view/#ref-for-dom-window-moveto

moveTo, moveBy, resizeTo and resizeBy should be allowed to fail. Browsers will ignore these when:

  • the Window is not the top-level window
  • the Window is top-level, but lives in a tabbed browser window
  • the UA decides that content-driven window resizing is undesirable.

I think there needs to be some text that says that the UA is allowed to do nothing when these functions are called. That begs the question about whether they should return some value to indicate if they succeeded.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.