[whatwg] HTML 5 video tag questions

Michael A. Puls II shadow2531 at gmail.com
Mon Jul 13 14:23:47 PDT 2009


On Mon, 13 Jul 2009 17:01:26 -0400, Philip Jägenstedt <philipj at opera.com>  
wrote:

> Does audio also have fallback content?

With <audio>, you can set its display to 'none' and the audio will still  
play. However, if its display is set to 'none' and the element were to  
fall back to a child object element that loads a plug-in, things wouldn't  
work because plug-ins don't work with a display of 'none'.

You would then have to detect that <audio> fell back so you could set its  
display to "inline-block" for example so the fallback plug-in would  
actually load. Or, there'd have to be a new css selector to handle this  
like audio::fallback_state { display: inline-block} or a parent selector  
on the child object element that was only applied when <audio> fell back  
to it. Or, the browser would have to make plug-in objects that are  
descendants of an <audio> element work with a display of 'none'.

The same applies to <video> if you want to set its display to 'none' and  
just hear the audio.

-- 
Michael



More information about the whatwg mailing list