Skip to content

Value of scale for iframes is unclear in the spec #52

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
alijuma opened this issue Nov 16, 2017 · 1 comment
Open

Value of scale for iframes is unclear in the spec #52

alijuma opened this issue Nov 16, 2017 · 1 comment

Comments

@alijuma
Copy link

alijuma commented Nov 16, 2017

Chrome always returns scale 1 for iframes, and this is also covered by viewport-scale-iframe-manual.html. But it's not clear that the spec language at https://wicg.github.io/visual-viewport/index.html#dom-visualviewport-scale implies this. Does this follow from the math given there or do we need to add a special case?

This came up in a WebKit review (https://bugs.webkit.org/show_bug.cgi?id=179385#c7).

@bokand
Copy link
Collaborator

bokand commented Nov 20, 2017

Yes, the intent is that an iframe's visual viewport doesn't have any scale of its own when the page is zoomed. You could imagine if we ever added per-iframe based zoom it would be non-1. The meaning of it is that it's "the scale relative to the parent frame". I'll make the spec clearer on this point.

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

No branches or pull requests

2 participants