Skip to content

Dependency on undefined behavior via getBoundingClientRect() #398

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

Open
frivoal opened this issue Oct 29, 2019 · 0 comments
Open

Dependency on undefined behavior via getBoundingClientRect() #398

frivoal opened this issue Oct 29, 2019 · 0 comments

Comments

@frivoal
Copy link

frivoal commented Oct 29, 2019

As discussed in w3c/csswg-drafts#4463, it isn't clear what is supposed to happen with getBoundingClientRect() when various fragments are spread over multiple pages. See that issue for details. Since UAs that support scripting and pagination at the same time exist, this needs an answer.

This is not an issue created by IntersectionObserver, but since IntersectionObserver's behavior is defined in terms of getBoundingClientRect(), it is an issue that it inherits.

I expect this to be something that first has to be sorted out in the definition of getBoundingClientRect(). However, I think it is worth raising here as well because:

  • Even though it is an problem in a normative dependency, until it is solved, IntersectionObserver has the same issue.
  • People interested in IntersectionObserver may be interested in getting involved in that issue and advocating for one solution or another.
  • Once that issue is solved, depending on how it is solved, IntersectionObserver may or may not need adjustments to handle that case.

Note: this is not a duplicate of #10 and #13: those were concerned about dealing with fragmentation in general, and that has been answered by using getBoundingClientRect(). This is concerned with the cases where getBoundingClientRect() itself is (currently) undefined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants