-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does conditional processing mute sound playback? #44
Comments
To answer your question: yes, conditional processing would be expected to affect audio and video playback. I am almost certain that I do agree that the language could be improved to address audio/video. In addition to whether resources are played, there is the question of whether user agents should download content that they aren't going to use. I don't know what current behavior is for |
Yes, display:none stops |
I can't find any spec in HTML or CSS that discusses the interaction of I still think it would be useful to have audio/video disabled by SVG conditional processing, but we'll need to be explicit: it should disable all processing, including file download. Not sure how this disabled state should be reflected in the HTML DOM APIs, though. I've added an issue to the spec itself, as I cleaned up some of the related text. |
After thinking about this, I would expect CSS Media queries have the same issue with audio and video. Audio and video get played although media queries have hidden them. Since So, this isn’t really an SVG related issue and should be just closed. |
I was seeing conditional processing more equivalent to As I mention in a comment on the |
At this morning's telcon, we resolved that conditional processing will function as display:none. There was a general preference for conditional processing being were more useful than that, but since interest in the feature is perceived to be low, we opted for the simpler model. |
4.9.1 already says (emphasis mine):
I think that's enough, since after today's resolution we take this literally for every element. |
Does sound play for audio and video elements which are hidden by conditional processing?
The current text only mentions rendering, but it doesn't say how events, animations or sound are affected. An improved wording to address events and animations was suggested: “All others will not be rendered (as if the display property were set to none.)” [1]
However, that also suggests that sound is always played.
Can you add the improved wording and mention how sound is affected?
[1] https://lists.w3.org/Archives/Public/www-svg/2014Mar/0049.html
The text was updated successfully, but these errors were encountered: