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

Wrong events coordinates in iFrames #2630

Open
sadym-chromium opened this issue Sep 20, 2024 · 2 comments
Open

Wrong events coordinates in iFrames #2630

sadym-chromium opened this issue Sep 20, 2024 · 2 comments

Comments

@sadym-chromium
Copy link
Collaborator

sadym-chromium commented Sep 20, 2024

In input.performActions command, with origin: "viewport" and context of iframe, the wrong coordinates are used.

Repro: test_move_to_origin_position_within_frame.

@sadym-chromium sadym-chromium changed the title events coordinates in iFrames Wrong events coordinates in iFrames Sep 20, 2024
@sadym-chromium
Copy link
Collaborator Author

We can try to traverse up the frame tree and try to get the frame offset. This approach wouldn't work for shadow tree though

@whimboo
Copy link

whimboo commented Sep 20, 2024

But the Shadow DOM doesn't have its own viewport. It's sharing it with the viewport of the main document. Or am I wrong? But it could happen that there is an iframe within the Shadow DOM which indeed would have to be taken into account. I don't think that we have a test case for that yet.

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