The mere existence of mozallowfullscreen and webkitallowfullscreen suggests that allowfullscreen comes with compatibility issues. I blindly just use all 3, while also suppressing my inner fear that IE doesn't support any of it.
+1
Added support for
HTMLIFrameElement.allowFullscreen
Firefox and Chrome already support it, unprefixed.
As of Microsoft Edge (build 10240+), this API is unprefixed. …
- MDN: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe#Browser_compatibility
- Spec: https://html.spec.whatwg.org/#attr-iframe-allowfullscreen
Please note that Feature-Policy introduced the allow attribute. The attributes below (including the allowfullscreen as mentioned here) are considered legacy attributes and have equivalent allow directives. The legacy attributes will be ignored when allow is present (and supported).
allowfullscreen attribute is obsolete to feature-policy directive: allow="fullscreen"allowpaymentrequest attribute is obsolete to feature-policy directive: allow="payment"allowusermedia attribute is obsolete to feature-policy directives: allow="camera microphone"Available at https://caniuse.com/#feat=mdn-html_elements_iframe_allowfullscreen
Most helpful comment
+1