Re: Firefox 22 hidden NPAPI
[email protected] Fri, 5 Jul 2013 04:11:42 -0700 (PDT)
| Newsgroups | gmane.comp.mozilla.devel.plugins |
|---|---|
| Message-ID | <[email protected]> |
On Thursday, July 4, 2013 5:24:15 PM UTC+3, Boris Zbarsky wrote: > On 7/4/13 4:06 AM, [email protected] wrote: > > > It seems that the NPAPI plugins which have the attribute hidden="true" in an 'embed' element are not loaded. > > > 1. Is this a new feature in firefox 22? > > > > It's a fix for a spec compliance bug. > > > > In Firefox 21, <embed> styled with display:none does not instantiate the > > plug-in. > > > > Per HTML5 spec, the "hidden" attribute makes the element be styled with > > display:none. > > > > In Firefox 21, we do that for all elements _except_ <embed>. > > > > Firefox 22 removed the exception for <embed> so that we are now > > following the spec. > > > > Do other UAs do something different here? If so, what? > > > > > 2. What is the best solution/workaround for this? > > > > width=0 height=0 instead of the hidden=true, probably. > > > > -Boris Thank you! It seems that width=0 height=0 does not suffice, the element is still taking some space. This is how I've tested: <!DOCTYPE HTML> <html> <body> <p>Before embed</p> <embed type="video/ogg" style="visibility:hidden;width:0px;height:0px;margin:0px;padding:0px;border-style:0px;border-width:0px;max-width:0px;max-height:0px" /> <p>After embed</p> </body> </html>