| <title>media-css-muted</title> |
| <script src="video-test.js"></script> |
| <script src="media-file.js"></script> |
| window.addEventListener('load', async event => { |
| run('video.src = findMediaFile("video", "content/test")'); |
| await waitFor(video, 'canplay'); |
| testExpected('video.muted', false); |
| testExpected('document.querySelector("video:muted")', null); |
| testExpected('document.querySelector("video:not(:muted)")', video); |
| run('video.muted = true'); |
| testExpected('document.querySelector("video:muted")', video); |
| testExpected('document.querySelector("video:not(:muted)")', null); |