W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2007

[whatwg] When to stop <video> elements from playing

From: Jonas Sicking <jonas@sicking.cc>
Date: Tue, 23 Oct 2007 16:53:56 -0700
Message-ID: <471E8994.5050400@sicking.cc>
fantasai wrote:
> Robert O'Callahan wrote:
>>
>> A related question is whether display:none audio and video elements 
>> should produce sound.
> 
> No. "display: none" is defined to affect all media, and that certainly
> should not change for <audio> and <video>.

I think this is different than screen readers not speaking display:none 
text. Both hiding layout frames and silencing screen readers only affect 
the 'rendering' of the contained text, it doesn't otherwise deactivate 
the contained display:none elements:

<style> elements that are display:none still have their stylesheets 
applied to the document.
<script> elements still execute.
Formcontrols are still submitted.
<iframe>s are still loaded.

I think these examples are much more similar to the <video> element and 
its produced sound.

/ Jonas
Received on Tuesday, 23 October 2007 16:53:56 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:37 UTC