Skip to content
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

It is unclear which Document object https://drafts.csswg.org/resize-observer/#ref-for-resizeobserver is talking about #10516

Open
smaug---- opened this issue Jul 1, 2024 · 2 comments

Comments

@smaug----
Copy link

"Add this to Document.[[resizeObservers]] slot."

What is that Document? I assume the idea is to get that from a global, but which global?

@emilio
Copy link
Collaborator

emilio commented Jul 1, 2024

Gecko at least uses the current global's document at the point of construction of the observer.

I think that's also what WebKit does given the CurrentDocument here.

Not quite sure what Blink does / what the ScriptState corresponds to there... @chrishtr do you know?

In any case, it seems current on construction is probably the most straight-forward answer here.

This is observable via callback order, cc @Loirooriol

@emilio emilio added the Agenda+ label Jul 1, 2024
@chrishtr
Copy link
Contributor

chrishtr commented Jul 2, 2024

Blink uses current global's document also.

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

3 participants