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

Is visualViewport useful for iframes? #55

Open
theres-waldo opened this issue Jul 4, 2018 · 1 comment
Open

Is visualViewport useful for iframes? #55

theres-waldo opened this issue Jul 4, 2018 · 1 comment

Comments

@theres-waldo
Copy link

We're looking at implementing the Visual Viewport API in Firefox. One thing we noticed was that the spec seems to define visualViewport for iframes as well. Is that useful? My understanding is that iframes don't have distinct notions of visual and layout viewports, since they cannot be zoomed.

@bokand
Copy link
Collaborator

bokand commented Jul 5, 2018

That's correct. The reason it's defined in iframes is for correct composition. If you take a page that uses the visualViewport and embed it in an iframe it should still function. You can think of an iframe as having an immutable visualViewport since it (today) can't be pinch-zoomed independently of the main frame. However, all the properties and operations are still well-defined.

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