How widely supported is the iframe attribute “allo

2020-08-10 19:25发布

问题:

I can't seem to find any websites detailing the support for the iframe attribute "allowfullscreen". CanIUse.com doesn't seem to have a listing for it, for example.

Does anyone have the support information for Chrome, Safari, IE and Firefox?

回答1:

I've started discovering some of my own answers:

FireFox: Added support in v18 (January 8, 2013) - Source
Chrome: Added support in v27 (May 22, 2013) - Source
Safari: Added support in v7 (October 22, 2013) - Source
Internet Explorer: Added support in v11
Microsoft Edge: Supported

It seems to be difficult to find detailed release notes for the other three, unfortunately.



回答2:

There’s a website dedicated to this attribute: http://www.allowfullscreen.com/. It's not very good, however.

While MSDN has only a rudimental entry, MDN provides a support table in their iframe doc:

  • FF: 18
  • Chrome: 17 (webkitallowfullscreen)
  • IE: no support
  • Safari: prefix support
  • Opera: supported


回答3:

Update: CanIUse.com reports support in all major browsers now.

Looks like this attribute is part of the HTML 5.1 specification. This WC3 implementation report claims support in all browsers, so

<iframe allowfullscreen>

should work, except Microsoft browsers which need the -ms- vendor prefix.