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

document.fullscreenElement is always true in Opera 12.12 #3

Closed
Yaffle opened this issue Jan 19, 2013 · 1 comment
Closed

document.fullscreenElement is always true in Opera 12.12 #3

Yaffle opened this issue Jan 19, 2013 · 1 comment

Comments

@Yaffle
Copy link

Yaffle commented Jan 19, 2013

Opera 12.12 uses "w3c" api, so this polyfill is not applied, but
it will be good to fix this issue

workaround:

    Object.defineProperty(document, "fullscreenEnabled", {
      get: function () {
        return !!document.fullscreenElement;
      }
    });
@neovov
Copy link
Owner

neovov commented Jan 19, 2013

Hi,

Thanks for the incoming.
According to the spec (http://www.w3.org/TR/fullscreen/) the “fullscreenEnabled” property reflect the ability for the browser to fullscreen an element (“Returns true if document has the ability to display elements fullscreen, or false otherwise.”).

So, this is a normal workaround for Opera.
I have updated the example page by using fullscreenElement instead of fullscreenEnabled for checking if we are in fullscreen or not. (commit:b4f02fe7cb)

This issue let me fix another issue regarding browsers natively supporting the API (commit:56b762bd0b)

Cheers!

@neovov neovov closed this as completed Jan 19, 2013
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